From: Fᴀʙɪᴇɴ Wᴇʀɴʟɪ Date: Tue, 30 Jul 2019 10:35:31 +0000 (+0200) Subject: Don't fail if syslog loglevel doesn't match X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b655234b2536533c7dd7a687b85f424c8ddfd5b1;p=collectd.git Don't fail if syslog loglevel doesn't match This makes the log message more consistent with the behaviour, and also is consistent with pre- 3b9c7b21b4ddfcf59a0147bc9e91e8889ca78d56 behaviour Change-Id: I0e8aa2f5c44cb5b4142001954f4544c4157125c9 Fixes: #3236 --- diff --git a/src/syslog.c b/src/syslog.c index b4e2c0cf..ee3d9f93 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -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);