[QGIS Commit] r12384 - in trunk/qgis/src: core plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Dec 9 11:42:57 EST 2009


Author: jef
Date: 2009-12-09 11:42:56 -0500 (Wed, 09 Dec 2009)
New Revision: 12384

Modified:
   trunk/qgis/src/core/qgsmaplayer.cpp
   trunk/qgis/src/plugins/grass/qgsgrassedit.cpp
Log:
remove some debug noise

Modified: trunk/qgis/src/core/qgsmaplayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsmaplayer.cpp	2009-12-09 12:17:32 UTC (rev 12383)
+++ trunk/qgis/src/core/qgsmaplayer.cpp	2009-12-09 16:42:56 UTC (rev 12384)
@@ -111,7 +111,7 @@
 /** Read property of QString layerName. */
 QString const & QgsMapLayer::name() const
 {
-  QgsDebugMsg( "returning name '" + mLayerName + "'" );
+  QgsDebugMsgLevel( "returning name '" + mLayerName + "'", 3 );
   return mLayerName;
 }
 
@@ -376,7 +376,7 @@
 
 void QgsMapLayer::connectNotify( const char * signal )
 {
-  QgsDebugMsg( "QgsMapLayer connected to " + QString( signal ) );
+  QgsDebugMsgLevel( "QgsMapLayer connected to " + QString( signal ), 3 );
 } //  QgsMapLayer::connectNotify
 
 

Modified: trunk/qgis/src/plugins/grass/qgsgrassedit.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassedit.cpp	2009-12-09 12:17:32 UTC (rev 12383)
+++ trunk/qgis/src/plugins/grass/qgsgrassedit.cpp	2009-12-09 16:42:56 UTC (rev 12384)
@@ -184,22 +184,22 @@
 {
   if ( !layer ) return false;
 
-  QgsDebugMsg( "layer name: " + layer->name() );
+  QgsDebugMsgLevel( "layer name: " + layer->name(), 3 );
 
   if ( layer->type() != QgsMapLayer::VectorLayer )
   {
-    QgsDebugMsg( "The selected layer is not vector." );
+    QgsDebugMsgLevel( "The selected layer is not vector.", 3 );
     return false;
   }
 
   //TODO dynamic_cast ?
   QgsVectorLayer *vector = ( QgsVectorLayer* )layer;
 
-  QgsDebugMsg( "Vector layer type: " + vector->providerType() );
+  QgsDebugMsgLevel( "Vector layer type: " + vector->providerType(), 3 );
 
   if ( vector->providerType() != "grass" )
   {
-    QgsDebugMsg( "The selected layer is not GRASS." );
+    QgsDebugMsgLevel( "The selected layer is not GRASS.", 3 );
     return false;
   }
 



More information about the QGIS-commit mailing list