projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3178 from ashie/fix-match-regex-for-empty-meta
[collectd.git]
/
src
/
syslog.c
diff --git
a/src/syslog.c
b/src/syslog.c
index
a600f30
..
d3be5c9
100644
(file)
--- a/
src/syslog.c
+++ b/
src/syslog.c
@@
-41,7
+41,8
@@
static int log_level = LOG_INFO;
static int notif_severity;
static const char *config_keys[] = {
static int notif_severity;
static const char *config_keys[] = {
- "LogLevel", "NotifyLevel",
+ "LogLevel",
+ "NotifyLevel",
};
static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
};
static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
@@
-56,7
+57,8
@@
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)
} else if (strcasecmp(key, "NotifyLevel") == 0) {
notif_severity = parse_notif_severity(value);
if (notif_severity < 0)
- return 1;
+ ERROR("syslog: invalid notification severity [%s]", value);
+ return 1;
}
return 0;
}
return 0;