]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
log: change default log level to notice
authorEric Leblond <eric@regit.org>
Thu, 3 Oct 2013 08:55:10 +0000 (10:55 +0200)
committerEric Leblond <eric@regit.org>
Thu, 3 Oct 2013 12:45:16 +0000 (14:45 +0200)
This patch updates the log level of meaningful start messages to
notice. It also sets the default log level to notice.

src/suricata.c
src/tm-threads.c
src/util-debug.c
suricata.yaml.in

index 5f42bda290a9bb7af3511f0dd9eea7c4bb2ca9ea..c8217693bf2e653c148fcaa15a656270b3f2abfa 100644 (file)
@@ -2119,7 +2119,7 @@ int main(int argc, char **argv)
         if (LoadSignatures(de_ctx, &suri) != TM_ECODE_OK)
             exit(EXIT_FAILURE);
         TmThreadActivateDummySlot();
-        SCLogInfo("Signature(s) loaded, Detect thread(s) activated.");
+        SCLogNotice("Signature(s) loaded, Detect thread(s) activated.");
     }
 
 
@@ -2133,7 +2133,7 @@ int main(int argc, char **argv)
     int engine_retval = EXIT_SUCCESS;
     while(1) {
         if (suricata_ctl_flags & (SURICATA_KILL | SURICATA_STOP)) {
-            SCLogInfo("Signal Received.  Stopping engine.");
+            SCLogNotice("Signal Received.  Stopping engine.");
 
             break;
         }
index e15e218597722ecd1deee16c43d7a3df662ee832..0e3a7f17798d25e2fc810a24c336c4cc35252192 100644 (file)
@@ -2188,7 +2188,7 @@ TmEcode TmThreadWaitOnThreadInit(void)
         }
     }
 
-    SCLogInfo("all %"PRIu16" packet processing threads, %"PRIu16" management "
+    SCLogNotice("all %"PRIu16" packet processing threads, %"PRIu16" management "
               "threads initialized, engine started.", ppt_num, mgt_num);
 
     return TM_ECODE_OK;
index 829647aa4f6dacb25d992264868f8c13682624ac..82d7b34e4f3849891f44fc556badfae0294d56d4 100644 (file)
@@ -1130,7 +1130,7 @@ void SCLogLoadConfig(int daemon)
     else {
         SCLogWarning(SC_ERR_MISSING_CONFIG_PARAM,
             "No default log level set, will use info.");
-        sc_lid->global_log_level = SC_LOG_INFO;
+        sc_lid->global_log_level = SC_LOG_NOTICE;
     }
     if (ConfGet("logging.default-log-format", &sc_lid->global_log_format) != 1)
         sc_lid->global_log_format = SC_LOG_DEF_LOG_FORMAT;
index e428d80664f68c09d86a9de6e2ef8f3bce7ac1ea..78a3410506dcef12d70e0d0146a5f460bcce381a 100644 (file)
@@ -676,7 +676,7 @@ logging:
   # compiled with the --enable-debug configure option.
   #
   # This value is overriden by the SC_LOG_LEVEL env var.
-  default-log-level: info
+  default-log-level: notice
 
   # The default output format.  Optional parameter, should default to
   # something reasonable if not provided.  Can be overriden in an