From: Eric Leblond Date: Thu, 3 Oct 2013 08:55:10 +0000 (+0200) Subject: log: change default log level to notice X-Git-Tag: suricata-2.0beta2~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bcacc712aca3d933993a8b7b4e5935059e41ecf;p=thirdparty%2Fsuricata.git log: change default log level to notice This patch updates the log level of meaningful start messages to notice. It also sets the default log level to notice. --- diff --git a/src/suricata.c b/src/suricata.c index 5f42bda290..c8217693bf 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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; } diff --git a/src/tm-threads.c b/src/tm-threads.c index e15e218597..0e3a7f1779 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -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; diff --git a/src/util-debug.c b/src/util-debug.c index 829647aa4f..82d7b34e4f 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -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; diff --git a/suricata.yaml.in b/suricata.yaml.in index e428d80664..78a3410506 100644 --- a/suricata.yaml.in +++ b/suricata.yaml.in @@ -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