#else
static int log_level = LOG_INFO;
#endif /* COLLECT_DEBUG */
-static int notif_severity = -1;
+static int notif_severity = 0;
static const char *config_keys[] =
{
if (strcasecmp (key, "LogLevel") == 0)
{
log_level = parse_log_severity (value);
- if (log_level == -1) return (1);
+ if (log_level < 0)
+ return (1);
}
else if (strcasecmp (key, "NotifyLevel") == 0)
{
- notif_severity = parse_notif_severity(key);
+ notif_severity = parse_notif_severity (value);
+ if (notif_severity < 0)
+ return (1);
}
return (0);