X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fsyslog.c;h=ee3d9f934681cea63700adf2bdf7a5f2c17feaa8;hp=d3be5c954797da6dc3edb4bbd9cd61ba004958e0;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=4af2afc84a90fe37e4988fca08ea79a6343c6b94 diff --git a/src/syslog.c b/src/syslog.c index d3be5c95..ee3d9f93 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -51,14 +51,14 @@ 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); - if (notif_severity < 0) + if (notif_severity < 0) { ERROR("syslog: invalid notification severity [%s]", value); - return 1; + return 1; + } } return 0;