summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 268aa9e)
raw | patch | inline | side by side (parent: 268aa9e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Jul 2016 12:59:38 +0000 (14:59 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Jul 2016 12:59:38 +0000 (14:59 +0200) |
src/log_logstash.c | patch | blob | history |
diff --git a/src/log_logstash.c b/src/log_logstash.c
index 45aa86d174010339c08845bca72de6dbdeb3bad6..3cf636e501b1891adc4584befa99fd995d10a613 100644 (file)
--- a/src/log_logstash.c
+++ b/src/log_logstash.c
if (0 == strcasecmp (key, "LogLevel")) {
log_level = parse_log_severity(value);
- if (log_level < 0) {
- log_level = LOG_INFO;
- ERROR("log_logstash: invalid loglevel [%s] defaulting to 'info'",
- value);
- return 1;
- }
+ 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);