From: Marc Fournier Date: Fri, 20 Jun 2014 14:48:36 +0000 (+0200) Subject: Merge pull request #636 from dothebart/config_debug_nonsilent X-Git-Tag: collectd-5.5.0~300 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=ea47de8419ab9eaa13e06271677b25bac8e1f57d;hp=845b9c75c76fa88bee62dac5596ec324360cf5ea;p=collectd.git Merge pull request #636 from dothebart/config_debug_nonsilent Syslog: don't go all silent on 'debug' with production binary --- diff --git a/src/syslog.c b/src/syslog.c index 4f5d0c4a..1a70fd00 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] defauling to 'info'", value); return (1); + } } else if (strcasecmp (key, "NotifyLevel") == 0) {