X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsyslog.c;h=834ba79ce8395446f365d8079b0217e97fa3e4b5;hb=ea73c57cc68be71f65d6bf491e2299eb88ab6eca;hp=4f5d0c4a2b84c6ebf20349c7247bdc9b26456f44;hpb=3b473acc5d4d27e5cf5101a4b8cc8a21c2bb7262;p=collectd.git diff --git a/src/syslog.c b/src/syslog.c index 4f5d0c4a..834ba79c 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -48,7 +48,11 @@ 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); + } } else if (strcasecmp (key, "NotifyLevel") == 0) {