From e684a259556a5778e5e8f5f8c08df1929d8d77d4 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 17 Oct 2014 12:43:42 +0200 Subject: [PATCH] Still log to console even if the logfile hasn't been setup --- src/libtomahawk/utils/Logger.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libtomahawk/utils/Logger.cpp b/src/libtomahawk/utils/Logger.cpp index b4e2729f6..1288003cc 100644 --- a/src/libtomahawk/utils/Logger.cpp +++ b/src/libtomahawk/utils/Logger.cpp @@ -78,11 +78,6 @@ namespace Logger static void log( const char *msg, unsigned int debugLevel, bool toDisk = true ) { - if( logStream.isNull() ) - { - return; - } - if ( s_threshold < 0 ) { if ( qApp->arguments().contains( "--verbose" ) ) @@ -103,7 +98,7 @@ log( const char *msg, unsigned int debugLevel, bool toDisk = true ) toDisk = true; #endif - if ( toDisk || (int)debugLevel <= s_threshold ) + if ( !logStream.isNull() && ( toDisk || (int)debugLevel <= s_threshold ) ) { QMutexLocker lock( &s_mutex );