The log level of individual loggers (console, file, syslog) was
being capped by the default log level. For example, if the
default log level was notice, setting the file level to info
would still result in notice level logging.
Bug #3210
ConfNode *outputs;
SCLogInitData *sc_lid;
int have_logging = 0;
+ int max_level = 0;
outputs = ConfGetNode("logging.outputs");
if (outputs == NULL) {
level_s);
exit(EXIT_FAILURE);
}
+ max_level = MAX(max_level, level);
}
if (strcmp(output->name, "console") == 0) {
" 'logging.outputs' in the YAML.");
}
+ /* Set the global log level to that of the max level used. */
+ sc_lid->global_log_level = MAX(sc_lid->global_log_level, max_level);
SCLogInitLogModule(sc_lid);
SCLogDebug("sc_log_global_log_level: %d", sc_log_global_log_level);