Skip to content

Commit

Permalink
Merge pull request #200 from sdikiy/dirdebug
Browse files Browse the repository at this point in the history
Debugging of all files in a directory
  • Loading branch information
jef-n committed Sep 1, 2012
2 parents b43ed34 + df04771 commit cbdafbc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/core/qgslogger.cpp
Original file line number Original file line 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(); const char* dfile = debugFile();
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file 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; 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(); const char* dfile = debugFile();
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file 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; 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(); const char* dfile = debugFile();
if ( dfile ) //exit if QGIS_DEBUG_FILE is set and the message comes from the wrong file 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; return;
} }
Expand Down
1 change: 0 additions & 1 deletion src/mapserver/qgshttprequesthandler.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <QStringList> #include <QStringList>
#include <QUrl> #include <QUrl>
#include <fcgi_stdio.h> #include <fcgi_stdio.h>
#include "qgslogger.h"


QgsHttpRequestHandler::QgsHttpRequestHandler(): QgsRequestHandler() QgsHttpRequestHandler::QgsHttpRequestHandler(): QgsRequestHandler()
{ {
Expand Down
1 change: 0 additions & 1 deletion src/mapserver/qgswfsserver.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "qgsrenderer.h" #include "qgsrenderer.h"
#include "qgslegendmodel.h" #include "qgslegendmodel.h"
#include "qgscomposerlegenditem.h" #include "qgscomposerlegenditem.h"
#include "qgslogger.h"
#include "qgsrequesthandler.h" #include "qgsrequesthandler.h"
#include <QImage> #include <QImage>
#include <QPainter> #include <QPainter>
Expand Down
1 change: 0 additions & 1 deletion src/mapserver/qgswmsserver.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "qgsrendererv2.h" #include "qgsrendererv2.h"
#include "qgslegendmodel.h" #include "qgslegendmodel.h"
#include "qgscomposerlegenditem.h" #include "qgscomposerlegenditem.h"
#include "qgslogger.h"
#include "qgspaintenginehack.h" #include "qgspaintenginehack.h"


#include <QImage> #include <QImage>
Expand Down

0 comments on commit cbdafbc

Please sign in to comment.