Skip to content

Commit

Permalink
[processing] Use info logging instead of warning logging for non-warn…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
nyalldawson committed Apr 27, 2018
1 parent 249dca7 commit e25fd4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/processing/qgsprocessingfeedback.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class CORE_EXPORT QgsProcessingFeedback : public QgsFeedback
*
* If \a fatalError is true then the error prevented the algorithm from executing.
*/
virtual void reportError( const QString &error, bool fatalError = false ) { Q_UNUSED( fatalError ); QgsMessageLog::logMessage( error ); }
virtual void reportError( const QString &error, bool fatalError = false ) { Q_UNUSED( fatalError ); QgsMessageLog::logMessage( error, tr( "Processing" ), Qgis::Critical ); }

/**
* Pushes a general informational message from the algorithm. This can
Expand All @@ -61,7 +61,7 @@ class CORE_EXPORT QgsProcessingFeedback : public QgsFeedback
* \see pushDebugInfo()
* \see pushConsoleInfo()
*/
virtual void pushInfo( const QString &info ) { QgsMessageLog::logMessage( info ); }
virtual void pushInfo( const QString &info ) { QgsMessageLog::logMessage( info, tr( "Processing" ), Qgis::Info ); }

/**
* Pushes an informational message containing a command from the algorithm.
Expand All @@ -71,7 +71,7 @@ class CORE_EXPORT QgsProcessingFeedback : public QgsFeedback
* \see pushDebugInfo()
* \see pushConsoleInfo()
*/
virtual void pushCommandInfo( const QString &info ) { QgsMessageLog::logMessage( info ); }
virtual void pushCommandInfo( const QString &info ) { QgsMessageLog::logMessage( info, tr( "Processing" ), Qgis::Info ); }

/**
* Pushes an informational message containing debugging helpers from
Expand All @@ -80,7 +80,7 @@ class CORE_EXPORT QgsProcessingFeedback : public QgsFeedback
* \see pushCommandInfo()
* \see pushConsoleInfo()
*/
virtual void pushDebugInfo( const QString &info ) { QgsMessageLog::logMessage( info ); }
virtual void pushDebugInfo( const QString &info ) { QgsMessageLog::logMessage( info, tr( "Processing" ), Qgis::Info ); }

/**
* Pushes a console feedback message from the algorithm. This is used to
Expand All @@ -89,7 +89,7 @@ class CORE_EXPORT QgsProcessingFeedback : public QgsFeedback
* \see pushDebugInfo()
* \see pushCommandInfo()
*/
virtual void pushConsoleInfo( const QString &info ) { QgsMessageLog::logMessage( info ); }
virtual void pushConsoleInfo( const QString &info ) { QgsMessageLog::logMessage( info, tr( "Processing" ), Qgis::Info ); }

};

Expand Down

0 comments on commit e25fd4c

Please sign in to comment.