mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Do not log "module not found" messages if there is a second try.
This commit is contained in:
parent
9b64825c69
commit
c1953d61c7
2 changed files with 5 additions and 2 deletions
|
@ -302,6 +302,8 @@ retry_vio_init:
|
|||
}
|
||||
/* Now vio init finally failed which means a module could not be found. */
|
||||
ctx->error_code = CSYNC_ERR_MODULE;
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_FATAL,
|
||||
"The csync module %s could not be loaded.", module);
|
||||
SAFE_FREE(module);
|
||||
goto out;
|
||||
}
|
||||
|
|
|
@ -122,8 +122,9 @@ int csync_vio_init(CSYNC *ctx, const char *module, const char *args) {
|
|||
ctx->module.handle = dlopen(path, RTLD_LAZY);
|
||||
SAFE_FREE(path);
|
||||
if ((err = dlerror()) != NULL) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "loading %s plugin failed - %s",
|
||||
module, err);
|
||||
/* Disable this log message as that tremendously confuses users. See log in csync.c */
|
||||
/* CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "loading %s plugin failed - %s",
|
||||
* module, err); */
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue