Skip to content

Commit 1394c28

Browse files
committedApr 26, 2017
[processing] Move some log handling to c++ class
1 parent 5169e0d commit 1394c28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+357
-299
lines changed
 

‎doc/api_break.dox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,6 +2229,7 @@ object of type QgsProcessingFeedback, and will need to adapt their use of progre
22292229
- SilentProgress was removed. Use the base QgsProcessingFeedback class instead.
22302230
- algList was removed. Use QgsApplication.processingRegistry() instead.
22312231
- Processing.algs was removed. QgsApplication.processingRegistry().algorithms() instead.
2232+
- ProcessingLog should not be used when reporting log messages from algorithms. Use QgsProcessingUtils.logMessage() instead.
22322233

22332234
Triangulation {#qgis_api_break_3_0_Triangulation}
22342235
-------------

‎python/core/processing/qgsprocessingutils.sip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ class QgsProcessingUtils
124124
:rtype: list of QVariant
125125
%End
126126

127+
static void logMessage( QgsMessageLog::MessageLevel level, const QString &message );
128+
%Docstring
129+
Logs a processing ``message`` of a specified ``level`` to the QGIS message log.
130+
%End
131+
127132
};
128133

129134

0 commit comments

Comments
 (0)
Please sign in to comment.