Merge pull request #3201 from ccin2p3/f/fix-syslog-rc
authorPavel Rochnyak <pavel2000@ngs.ru>
Tue, 2 Jul 2019 09:23:47 +0000 (16:23 +0700)
committerGitHub <noreply@github.com>
Tue, 2 Jul 2019 09:23:47 +0000 (16:23 +0700)
Fix return code introduced by #3182

src/syslog.c

index d3be5c9..b4e2c0c 100644 (file)
@@ -56,9 +56,10 @@ static int sl_config(const char *key, const char *value) {
     }
   } else if (strcasecmp(key, "NotifyLevel") == 0) {
     notif_severity = parse_notif_severity(value);
-    if (notif_severity < 0)
+    if (notif_severity < 0) {
       ERROR("syslog: invalid notification severity [%s]", value);
-    return 1;
+      return 1;
+    }
   }
 
   return 0;