X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsyslog.c;h=b4e2c0cfc159916c315bd6239f4bb437c9bc11de;hb=835a58c09ff7afd44627915c9274b16c5df0fb50;hp=a600f30eca4fe17e883205428fd221df6fcddf13;hpb=d53b2151ae583d6fc38b1a4dd49a3469635a84c8;p=collectd.git diff --git a/src/syslog.c b/src/syslog.c index a600f30e..b4e2c0cf 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -41,7 +41,8 @@ static int log_level = LOG_INFO; static int notif_severity; static const char *config_keys[] = { - "LogLevel", "NotifyLevel", + "LogLevel", + "NotifyLevel", }; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); @@ -55,8 +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 0;