Skip to content

Commit

Permalink
Use QgsDebugMsg instead of QgsMessageLog for non-error feedback
Browse files Browse the repository at this point in the history
QgsMessageLog should only be used for errors or warnings,
not 'everything is working ok' type debug messages
  • Loading branch information
nyalldawson committed Sep 12, 2017
1 parent 378a9e9 commit 80148c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/geonode/qgsgeonodesourceselect.cpp
Expand Up @@ -199,7 +199,7 @@ void QgsGeoNodeSourceSelect::connectToGeonodeConnection()

if ( !layers.empty() )
{
QgsMessageLog::logMessage( QStringLiteral( "Success, non empty layers %1" ).arg( layers.count( ) ), tr( "GeoNode" ) );
QgsDebugMsg( QStringLiteral( "Success, non empty layers %1" ).arg( layers.count( ) ) );
}
else
{
Expand Down Expand Up @@ -479,7 +479,7 @@ void QgsGeoNodeSourceSelect::addButtonClicked()
uri += QStringLiteral( " table=\"\"" );
uri += QStringLiteral( " sql=" );

QgsMessageLog::logMessage( "Add WFS from GeoNode : " + uri + " and typename: " + typeName, tr( "GeoNode" ) );
QgsDebugMsg( "Add WFS from GeoNode : " + uri + " and typename: " + typeName );
emit addWfsLayer( uri, typeName, "WFS" );
}
else if ( webServiceType == "XYZ" )
Expand Down

0 comments on commit 80148c9

Please sign in to comment.