Skip to content

Commit

Permalink
QGIS_DEBUG_FILE - debugging of all files in a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sdikiy committed Aug 7, 2012
1 parent 709dd60 commit df04771
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgslogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void QgsLogger::debug( const QString& msg, int debuglevel, const char* file, con
const char* dfile = debugFile();
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file
{
if ( !file || strcmp( dfile, file ) != 0 )
if ( !file || strncmp( dfile, file, strlen( dfile ) ) != 0 )
{
return;
}
Expand Down Expand Up @@ -82,7 +82,7 @@ void QgsLogger::debug( const QString& var, int val, int debuglevel, const char*
const char* dfile = debugFile();
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file
{
if ( !file || strcmp( dfile, file ) != 0 )
if ( !file || strncmp( dfile, file, strlen( dfile ) ) != 0 )
{
return;
}
Expand Down Expand Up @@ -123,7 +123,7 @@ void QgsLogger::debug( const QString& var, double val, int debuglevel, const cha
const char* dfile = debugFile();
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file
{
if ( !file || strcmp( dfile, file ) != 0 )
if ( !file || strncmp( dfile, file, strlen( dfile ) ) != 0 )
{
return;
}
Expand Down

0 comments on commit df04771

Please sign in to comment.