summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b4ff173)
raw | patch | inline | side by side (parent: b4ff173)
author | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Fri, 25 Jul 2014 14:04:08 +0000 (16:04 +0200) | ||
committer | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Fri, 25 Jul 2014 14:04:08 +0000 (16:04 +0200) |
src/log_logstash.c | patch | blob | history |
diff --git a/src/log_logstash.c b/src/log_logstash.c
index 4b7790c71ecb7b33d72d8f4e97813e9f787bcbea..b9400461d1e95b8723f6a8c12e6ab7c921bf0970 100644 (file)
--- a/src/log_logstash.c
+++ b/src/log_logstash.c
if (0 == strcasecmp (key, "LogLevel")) {
log_level = parse_log_severity(value);
printf("parsed log level: %d\n", log_level);
- if (log_level == -1) return 1; /* to keep previous behaviour */
+ if (log_level < 0) {
+ log_level = LOG_INFO;
+ ERROR("log_logstash: invalid loglevel [%s] defaulting to 'info'",
+ value);
+ return 1;
+ }
}
else if (0 == strcasecmp (key, "File")) {
sfree (log_file);