projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
845b9c7
)
Merge pull request #636 from dothebart/config_debug_nonsilent
author
Marc Fournier
<marc.fournier@camptocamp.com>
Fri, 20 Jun 2014 14:48:36 +0000
(16:48 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Fri, 20 Jun 2014 14:48:36 +0000
(16:48 +0200)
Syslog: don't go all silent on 'debug' with production binary
src/syslog.c
patch
|
blob
|
history
diff --git
a/src/syslog.c
b/src/syslog.c
index
4f5d0c4
..
1a70fd0
100644
(file)
--- 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)
{