diff --git a/log/log.cpp b/log/log.cpp index 19b98db..d3903b6 100644 --- a/log/log.cpp +++ b/log/log.cpp @@ -59,6 +59,13 @@ Log::Log() Log::~Log() { + // IMPROVE ME + // I am not sure if this is a correct behaviour + // the log buffer and file logger may not exist now + // (life time of objects) + // may would be better to have a flag 'clear_at_the_end' + // and if true then call this method? + save_log_and_clear(); }