projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
3591872
)
Merge pull request #3201 from ccin2p3/f/fix-syslog-rc
author
Pavel Rochnyak
<pavel2000@ngs.ru>
Tue, 2 Jul 2019 09:23:47 +0000
(16:23 +0700)
committer
GitHub
<noreply@github.com>
Tue, 2 Jul 2019 09:23:47 +0000
(16:23 +0700)
Fix return code introduced by #3182
src/syslog.c
patch
|
blob
|
history
diff --git
a/src/syslog.c
b/src/syslog.c
index
d3be5c9
..
b4e2c0c
100644
(file)
--- a/
src/syslog.c
+++ b/
src/syslog.c
@@
-56,9
+56,10
@@
static int sl_config(const char *key, const char *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;