detect/disable-detect: suppress info message

The message would be displayed even when level was higher than
info.
pull/3783/head
Victor Julien 6 years ago
parent d00950be81
commit ee128c7460

@ -1700,7 +1700,6 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
}
else if(strcmp((long_opts[option_index]).name, "disable-detection") == 0) {
g_detect_disabled = suri->disabled_detect = 1;
SCLogInfo("detection engine disabled");
}
else if(strcmp((long_opts[option_index]).name, "fatal-unittests") == 0) {
#ifdef UNITTESTS
@ -2804,6 +2803,7 @@ static int PostConfLoadedSetup(SCInstance *suri)
#endif
if (suri->disabled_detect) {
SCLogConfig("detection engine disabled");
/* disable raw reassembly */
(void)ConfSetFinal("stream.reassembly.raw", "false");
}

Loading…
Cancel
Save