From b655234b2536533c7dd7a687b85f424c8ddfd5b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?F=E1=B4=80=CA=99=C9=AA=E1=B4=87=C9=B4=20W=E1=B4=87=CA=80?= =?utf8?q?=C9=B4=CA=9F=C9=AA?= Date: Tue, 30 Jul 2019 12:35:31 +0200 Subject: [PATCH] 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 --- src/syslog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.11.0