1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 15:47:38 +02:00

Still log to console even if the logfile hasn't been setup

This commit is contained in:
Dominik Schmidt
2014-10-17 12:43:42 +02:00
parent a1fc8194bc
commit e684a25955

View File

@@ -78,11 +78,6 @@ namespace Logger
static void static void
log( const char *msg, unsigned int debugLevel, bool toDisk = true ) log( const char *msg, unsigned int debugLevel, bool toDisk = true )
{ {
if( logStream.isNull() )
{
return;
}
if ( s_threshold < 0 ) if ( s_threshold < 0 )
{ {
if ( qApp->arguments().contains( "--verbose" ) ) if ( qApp->arguments().contains( "--verbose" ) )
@@ -103,7 +98,7 @@ log( const char *msg, unsigned int debugLevel, bool toDisk = true )
toDisk = true; toDisk = true;
#endif #endif
if ( toDisk || (int)debugLevel <= s_threshold ) if ( !logStream.isNull() && ( toDisk || (int)debugLevel <= s_threshold ) )
{ {
QMutexLocker lock( &s_mutex ); QMutexLocker lock( &s_mutex );