Skip to content

Commit df04771

Browse files
committedAug 7, 2012
QGIS_DEBUG_FILE - debugging of all files in a directory
1 parent 709dd60 commit df04771

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/core/qgslogger.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void QgsLogger::debug( const QString& msg, int debuglevel, const char* file, con
3535
const char* dfile = debugFile();
3636
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file
3737
{
38-
if ( !file || strcmp( dfile, file ) != 0 )
38+
if ( !file || strncmp( dfile, file, strlen( dfile ) ) != 0 )
3939
{
4040
return;
4141
}
@@ -82,7 +82,7 @@ void QgsLogger::debug( const QString& var, int val, int debuglevel, const char*
8282
const char* dfile = debugFile();
8383
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file
8484
{
85-
if ( !file || strcmp( dfile, file ) != 0 )
85+
if ( !file || strncmp( dfile, file, strlen( dfile ) ) != 0 )
8686
{
8787
return;
8888
}
@@ -123,7 +123,7 @@ void QgsLogger::debug( const QString& var, double val, int debuglevel, const cha
123123
const char* dfile = debugFile();
124124
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file
125125
{
126-
if ( !file || strcmp( dfile, file ) != 0 )
126+
if ( !file || strncmp( dfile, file, strlen( dfile ) ) != 0 )
127127
{
128128
return;
129129
}

0 commit comments

Comments
 (0)
Please sign in to comment.