1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Don't try to log if the log file hasnt been setup

This commit is contained in:
Dominik Schmidt
2014-10-17 12:34:48 +02:00
parent 3f62694b25
commit a1fc8194bc
2 changed files with 6 additions and 1 deletions

View File

@@ -78,6 +78,11 @@ 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" ) )