X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsyslog.c;h=e8c4be561440a377821d4e78c5974ca137f65283;hb=a07f44c9cd5828a84545dcfe22544bfed2ea8812;hp=90a97fb52fff8a27598332f60ac3a2525e945086;hpb=d544398864bc02dfd1623e6d005591b512e2f6c6;p=collectd.git diff --git a/src/syslog.c b/src/syslog.c index 90a97fb5..e8c4be56 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -26,8 +26,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #if HAVE_SYSLOG_H #include @@ -38,7 +38,7 @@ static int log_level = LOG_DEBUG; #else static int log_level = LOG_INFO; #endif /* COLLECT_DEBUG */ -static int notif_severity = 0; +static int notif_severity; static const char *config_keys[] = { "LogLevel", "NotifyLevel", @@ -56,6 +56,7 @@ 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) + ERROR("syslog: invalid notification severity [%s]", value); return 1; }