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.
pull/576/head
Eric Leblond 13 years ago
parent c1190545cf
commit 7bcacc712a

@ -2119,7 +2119,7 @@ int main(int argc, char **argv)
if (LoadSignatures(de_ctx, &suri) != TM_ECODE_OK) if (LoadSignatures(de_ctx, &suri) != TM_ECODE_OK)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
TmThreadActivateDummySlot(); 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; int engine_retval = EXIT_SUCCESS;
while(1) { while(1) {
if (suricata_ctl_flags & (SURICATA_KILL | SURICATA_STOP)) { if (suricata_ctl_flags & (SURICATA_KILL | SURICATA_STOP)) {
SCLogInfo("Signal Received. Stopping engine."); SCLogNotice("Signal Received. Stopping engine.");
break; break;
} }

@ -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); "threads initialized, engine started.", ppt_num, mgt_num);
return TM_ECODE_OK; return TM_ECODE_OK;

@ -1130,7 +1130,7 @@ void SCLogLoadConfig(int daemon)
else { else {
SCLogWarning(SC_ERR_MISSING_CONFIG_PARAM, SCLogWarning(SC_ERR_MISSING_CONFIG_PARAM,
"No default log level set, will use info."); "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) if (ConfGet("logging.default-log-format", &sc_lid->global_log_format) != 1)
sc_lid->global_log_format = SC_LOG_DEF_LOG_FORMAT; sc_lid->global_log_format = SC_LOG_DEF_LOG_FORMAT;

@ -676,7 +676,7 @@ logging:
# compiled with the --enable-debug configure option. # compiled with the --enable-debug configure option.
# #
# This value is overriden by the SC_LOG_LEVEL env var. # 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 # The default output format. Optional parameter, should default to
# something reasonable if not provided. Can be overriden in an # something reasonable if not provided. Can be overriden in an

Loading…
Cancel
Save