log_logstash plugin: fix indentation
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Jul 2016 12:59:38 +0000 (14:59 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Jul 2016 12:59:38 +0000 (14:59 +0200)
src/log_logstash.c

index 45aa86d..3cf636e 100644 (file)
@@ -64,12 +64,12 @@ static int log_logstash_config (const char *key, const char *value)
 
        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);