Skip to content

Commit b20d3b7

Browse files
committed
Less debug noise
1 parent 9d9ce20 commit b20d3b7

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/app/qgsundowidget.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ void QgsUndoWidget::indexChanged( int curIndx )
8585

8686
if ( offset != 0 )
8787
{
88-
QgsDebugMsg( QString( "curIndx : %1" ).arg( curIndx ) );
89-
QgsDebugMsg( QString( "offset : %1" ).arg( offset ) );
90-
QgsDebugMsg( QString( "curCount: %1" ).arg( curCount ) );
88+
QgsDebugMsgLevel( QString( "curIndx : %1" ).arg( curIndx ), 4 );
89+
QgsDebugMsgLevel( QString( "offset : %1" ).arg( offset ), 4 );
90+
QgsDebugMsgLevel( QString( "curCount: %1" ).arg( curCount ), 4 );
9191
if ( lastRedo )
9292
{
93-
QgsDebugMsg( QString( "lastRedo: true" ) );
93+
QgsDebugMsgLevel( QString( "lastRedo: true" ), 4 );
9494
}
9595
}
9696

@@ -100,7 +100,6 @@ void QgsUndoWidget::indexChanged( int curIndx )
100100
{
101101
if ( mMapCanvas )
102102
{
103-
QgsDebugMsg( QString( "trigger redraw" ) );
104103
mMapCanvas->refresh();
105104
}
106105
}

src/core/qgsvectorlayereditbuffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ bool QgsVectorLayerEditBuffer::isModified() const
5353

5454
void QgsVectorLayerEditBuffer::undoIndexChanged( int index )
5555
{
56-
QgsDebugMsg( QString( "undo index changed %1" ).arg( index ) );
56+
QgsDebugMsgLevel( QString( "undo index changed %1" ).arg( index ), 4 );
5757
Q_UNUSED( index );
5858
emit layerModified();
5959
}

src/core/qgsvectorlayerundocommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ QgsVectorLayerUndoCommandAddFeature::QgsVectorLayerUndoCommandAddFeature( QgsVec
3333
//assign a temporary id to the feature (use negative numbers)
3434
addedIdLowWaterMark--;
3535

36-
QgsDebugMsg( "Assigned feature id " + QString::number( addedIdLowWaterMark ) );
36+
QgsDebugMsgLevel( "Assigned feature id " + QString::number( addedIdLowWaterMark ), 4 );
3737

3838
// Force a feature ID (to keep other functions in QGIS happy,
3939
// providers will use their own new feature ID when we commit the new feature)

0 commit comments

Comments
 (0)