From 24e20f889a4aab3162e184ab7c9b4356e9e45e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 27 May 2014 20:36:26 +0200 Subject: [PATCH] updated QsLog --- QsLog/QsLog.cpp | 1 + QsLog/QsLog.pri | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/QsLog/QsLog.cpp b/QsLog/QsLog.cpp index 8f281bb6..7eafd151 100644 --- a/QsLog/QsLog.cpp +++ b/QsLog/QsLog.cpp @@ -146,6 +146,7 @@ Logger& Logger::instance() void Logger::destroyInstance() { delete sInstance; + sInstance = 0; } // tries to extract the level from a string log message. If available, conversionSucceeded will diff --git a/QsLog/QsLog.pri b/QsLog/QsLog.pri index 0b464759..4afc6b47 100644 --- a/QsLog/QsLog.pri +++ b/QsLog/QsLog.pri @@ -1,8 +1,7 @@ INCLUDEPATH += $$PWD #DEFINES += QS_LOG_LINE_NUMBERS # automatically writes the file and line for each log message #DEFINES += QS_LOG_DISABLE # logging code is replaced with a no-op -DEFINES += QS_LOG_SEPARATE_THREAD # messages are queued and written from a separate thread - +#DEFINES += QS_LOG_SEPARATE_THREAD # messages are queued and written from a separate thread SOURCES += $$PWD/QsLogDest.cpp \ $$PWD/QsLog.cpp \ $$PWD/QsLogDestConsole.cpp \