Merge pull request #3238 from ccin2p3/f/syslog-debug-level
authoranaudx <39760660+anaudx@users.noreply.github.com>
Tue, 30 Jul 2019 12:15:22 +0000 (14:15 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2019 12:15:22 +0000 (14:15 +0200)
Don't fail if syslog loglevel doesn't match

src/syslog.c

index b4e2c0c..ee3d9f9 100644 (file)
@@ -51,8 +51,7 @@ static int sl_config(const char *key, const char *value) {
     log_level = parse_log_severity(value);
     if (log_level < 0) {
       log_level = LOG_INFO;
-      ERROR("syslog: invalid loglevel [%s] defaulting to 'info'", value);
-      return 1;
+      WARNING("syslog: invalid loglevel [%s] defaulting to 'info'", value);
     }
   } else if (strcasecmp(key, "NotifyLevel") == 0) {
     notif_severity = parse_notif_severity(value);