Do not log "module not found" messages if there is a second try.

This commit is contained in:
Klaas Freitag 2012-06-18 10:43:07 +02:00
parent 9b64825c69
commit c1953d61c7
2 changed files with 5 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}