A variant of this is currently done by the wrapper but will be removed
from there because the wrapper will no longer see the CTDB_LOGGING
option.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
#include "system/time.h"
#include "system/wait.h"
#include "system/network.h"
+#include "system/syslog.h"
#include <popt.h>
#include <talloc.h>
options.logging = "file:";
}
+ if (strcmp(options.logging, "syslog") != 0) {
+ /* This can help when CTDB logging is misconfigured */
+ syslog(LOG_DAEMON|LOG_NOTICE,
+ "CTDB logging to location %s",
+ options.logging);
+ }
+
/* Initialize logging and set the debug level */
if (!ctdb_logging_init(ctdb, options.logging, options.debuglevel)) {
goto fail;