Skip to content

Commit

Permalink
Fix return code introduced by collectd#3182
Browse files Browse the repository at this point in the history
Change-Id: I0972f74f3fff05cf29fa9b0be383f0b0df1e6d03
Fixes: collectd#3200
  • Loading branch information
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ committed Jul 2, 2019
1 parent 9f8dc56 commit 835a58c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/syslog.c
Expand Up @@ -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;
Expand Down

0 comments on commit 835a58c

Please sign in to comment.