]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log: reorganize SCLogOPIfaceCtx to make it more efficient
authorVictor Julien <victor@inliniac.net>
Thu, 25 Jun 2015 15:32:16 +0000 (17:32 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 6 Jul 2015 13:52:47 +0000 (15:52 +0200)
src/util-debug.c
src/util-debug.h

index 7a78987dda5d7a143113a1da4c5222642efded1f..7e9726bbb5d8cd58411ed0278010777c75e83262 100644 (file)
@@ -652,6 +652,10 @@ static inline SCLogOPIfaceCtx *SCLogInitConsoleOPIface(const char *log_format,
     }
     iface_ctx->log_level = tmp_log_level;
 
+    if (isatty(fileno(stdout))) {
+
+    }
+
     return iface_ctx;
 }
 
index e5b4d705502558300d9fa75bec1bedb8bdc763e3..5b0dd008ea9c8235d031d30cdb720ea2d3a62102 100644 (file)
@@ -120,12 +120,12 @@ typedef struct SCLogOPIfaceCtx_ {
     /* the facility code if the interface is SC_LOG_IFACE_SYSLOG */
     int facility;
 
-    /* override for the global_log_format(currently not used) */
-    const char *log_format;
-
     /* override for the global_log_level */
     SCLogLevel log_level;
 
+    /* override for the global_log_format(currently not used) */
+    const char *log_format;
+
     struct SCLogOPIfaceCtx_ *next;
 } SCLogOPIfaceCtx;