fix uninitlized variable in logger and remove delegating ctor

master
Andre Puschmann 7 years ago
parent 1db3f8ffcc
commit 97448c0a1f

@ -70,6 +70,7 @@ public:
level = LOG_LEVEL_NONE;
hex_limit = 0;
show_layer_en = true;
level_text_short = true;
}
log(std::string service_name_) {
@ -78,6 +79,7 @@ public:
level = LOG_LEVEL_NONE;
hex_limit = 0;
show_layer_en = true;
level_text_short = true;
}
// This function shall be called at the start of every tti for printing tti

@ -43,14 +43,18 @@ log_filter::log_filter()
}
log_filter::log_filter(std::string layer)
:log_filter()
{
do_tti = false;
time_src = NULL;
time_format = TIME;
init(layer, &def_logger_stdout, tti);
}
log_filter::log_filter(std::string layer, logger *logger_, bool tti)
:log_filter()
{
do_tti = false;
time_src = NULL;
time_format = TIME;
init(layer, logger_, tti);
}

Loading…
Cancel
Save