projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a5f35e
)
Don't fail if syslog loglevel doesn't match
author
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ
<faxmodem@collectd.org>
Tue, 30 Jul 2019 10:35:31 +0000
(12:35 +0200)
committer
Matthias Runge
<mrunge@redhat.com>
Mon, 16 Sep 2019 18:25:13 +0000
(20:25 +0200)
This makes the log message more consistent with the behaviour,
and also is consistent with pre-
3b9c7b21b4ddfcf59a0147bc9e91e8889ca78d56
behaviour
Change-Id: I0e8aa2f5c44cb5b4142001954f4544c4157125c9
Fixes: #3236
(cherry picked from commit
b655234b2536533c7dd7a687b85f424c8ddfd5b1
)
src/syslog.c
patch
|
blob
|
history
diff --git
a/src/syslog.c
b/src/syslog.c
index
b4e2c0c
..
ee3d9f9
100644
(file)
--- a/
src/syslog.c
+++ b/
src/syslog.c
@@
-51,8
+51,7
@@
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);