Skip to content
Permalink
Browse files

QGIS_DEBUG_FILE - debugging of all files in a directory

  • Loading branch information
sdikiy committed Aug 7, 2012
1 parent 709dd60 commit df047713b3e84c8d74e99b55c0c505a1e98d1ee6
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgslogger.cpp
@@ -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;
}
@@ -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;
}
@@ -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;
}

0 comments on commit df04771

Please sign in to comment.
You can’t perform that action at this time.