a comment added in Log::~Log(), we have to consider whether calling save_log_and_clear() in ~Log() should be removed

This commit is contained in:
Tomasz Sowa 2021-02-17 16:51:06 +01:00
parent a29cb45f6a
commit aff698d155
1 changed files with 7 additions and 0 deletions

View File

@ -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();
}