log_filter use stdout logger is NULL

master
Xavier Arteaga 5 years ago committed by Xavier Arteaga
parent f6cf7780e8
commit f10f64215e

@ -55,6 +55,11 @@ log_filter::log_filter(std::string layer, logger* logger_, bool tti) : log()
do_tti = false; do_tti = false;
time_src = NULL; time_src = NULL;
time_format = TIME; time_format = TIME;
if (!logger_) {
logger_ = &def_logger_stdout;
}
init(std::move(layer), logger_, tti); init(std::move(layer), logger_, tti);
} }

Loading…
Cancel
Save