X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsyslog.c;h=d3be5c954797da6dc3edb4bbd9cd61ba004958e0;hb=0d72e6a58092954d7c68f4298927841d89075338;hp=a600f30eca4fe17e883205428fd221df6fcddf13;hpb=793da5a1d4fee49f3628c8147732cad52d8b0a42;p=collectd.git diff --git a/src/syslog.c b/src/syslog.c index a600f30e..d3be5c95 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); @@ -56,7 +57,8 @@ 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) - return 1; + ERROR("syslog: invalid notification severity [%s]", value); + return 1; } return 0;