Skip to content
Permalink
Browse files

[processing] Use info logging instead of warning logging for non-warn…

…ings
  • Loading branch information
nyalldawson committed Apr 27, 2018
1 parent 249dca7 commit e25fd4c90b8a262fd984e836c6294bee54367f7c
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/processing/qgsprocessingfeedback.h
@@ -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
@@ -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.
@@ -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
@@ -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
@@ -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 ); }

};

0 comments on commit e25fd4c

Please sign in to comment.
You can’t perform that action at this time.