From 99fbdc1635811223e5ea991d393e33ebbc6ca15c Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 20 Jun 2021 18:19:53 +0200 Subject: [PATCH] in Log::~Log(): removed call to save_log_and_clear() it creates a problem if a buffer is destroyed first: --- src/log/log.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/log/log.cpp b/src/log/log.cpp index 576b8bb..9283c8f 100644 --- a/src/log/log.cpp +++ b/src/log/log.cpp @@ -62,14 +62,6 @@ 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(); }