From c1953d61c71e1656f1fcd6e9625403a4faec7998 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 18 Jun 2012 10:43:07 +0200 Subject: [PATCH] Do not log "module not found" messages if there is a second try. --- src/csync.c | 2 ++ src/vio/csync_vio.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/csync.c b/src/csync.c index 3e57196aa..56147bb20 100644 --- a/src/csync.c +++ b/src/csync.c @@ -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; } diff --git a/src/vio/csync_vio.c b/src/vio/csync_vio.c index 6e5b18f79..e4a581109 100644 --- a/src/vio/csync_vio.c +++ b/src/vio/csync_vio.c @@ -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; }