From: vsr Date: Wed, 30 Nov 2016 09:19:31 +0000 (+0300) Subject: Suppress numerous debug messages. X-Git-Tag: V8_2_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a319072cb47c78b2a176f7f464793426cbb000aa;p=modules%2Fgui.git Suppress numerous debug messages. --- diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx index 3bf337a96..33ec8b991 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx @@ -65,6 +65,9 @@ const int DEFAULT_GROUP = 40; */ QMutex myInitMutex; +/*! DEBUG mode */ +const bool DEBUG = false; + /*! \var IsCallOldMethods \brief Allow calling obsolete callback methods. @@ -165,15 +168,18 @@ public: FuncMsg( const QString& funcName ) { myName = funcName; - MESSAGE( qPrintable( myName ) << " [ begin ]" ); + if ( DEBUG ) + MESSAGE( qPrintable( myName ) << " [ begin ]" ); } ~FuncMsg() { - MESSAGE( qPrintable( myName ) << " [ end ]" ); + if ( DEBUG ) + MESSAGE( qPrintable( myName ) << " [ end ]" ); } void message( const QString& msg ) { - MESSAGE( qPrintable( myName ) << " : " << qPrintable( msg ) ); + if ( DEBUG ) + MESSAGE( qPrintable( myName ) << " : " << qPrintable( msg ) ); } private: QString myName;