Skip to content

Commit 5576297

Browse files
author
mhugent
committed
replaced std::couts in QgsOgrProvider with logger methods
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5164 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 05d5a58 commit 5576297

File tree

2 files changed

+78
-156
lines changed

2 files changed

+78
-156
lines changed

src/core/qgslogger.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
#include <sstream>
2323
#include <QString>
2424

25+
#ifdef QGISDEBUG
2526
#define QgsDebugMsg(str) QgsLogger::debug(QString(str), 1, __FILE__, __FUNCTION__, __LINE__);
27+
#else
28+
#define QgsDebugMsg(str)
29+
#endif
2630

2731
/**QgsLogger is a class to print debug/warning/error messages to the console. The advantage of this class over std::cout, std::cerr & co. is that the output can be controlled with environment variables:
2832

0 commit comments

Comments
 (0)