Skip to content

Commit

Permalink
remove some debug noise
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12384 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 9, 2009
1 parent 5527f98 commit ddde8f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsmaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void QgsMapLayer::setLayerName( const QString & _newVal )
/** Read property of QString layerName. */
QString const & QgsMapLayer::name() const
{
QgsDebugMsg( "returning name '" + mLayerName + "'" );
QgsDebugMsgLevel( "returning name '" + mLayerName + "'", 3 );
return mLayerName;
}

Expand Down Expand Up @@ -376,7 +376,7 @@ QString QgsMapLayer::lastError()

void QgsMapLayer::connectNotify( const char * signal )
{
QgsDebugMsg( "QgsMapLayer connected to " + QString( signal ) );
QgsDebugMsgLevel( "QgsMapLayer connected to " + QString( signal ), 3 );
} // QgsMapLayer::connectNotify


Expand Down
8 changes: 4 additions & 4 deletions src/plugins/grass/qgsgrassedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,22 +184,22 @@ bool QgsGrassEdit::isEditable( QgsMapLayer *layer )
{
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;
}

Expand Down

0 comments on commit ddde8f5

Please sign in to comment.