Skip to content

Commit

Permalink
Make QgsMessageLogConsole::logMessage virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
Éric Lemoine committed Sep 14, 2018
1 parent 5b808f6 commit 9eaee8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsmessagelog.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Formats a log message. Used by child classes.

public slots:

void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
virtual void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
%Docstring
Logs a message to stderr.

Expand Down
3 changes: 2 additions & 1 deletion python/server/auto_generated/qgsserverlogger.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ Activates logging to stderr.

public slots:

void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
virtual void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );

%Docstring
Log a message from the server context

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmessagelog.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class CORE_EXPORT QgsMessageLogConsole : public QObject
* \param tag the tag of the message
* \param level the log level of the message
*/
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
virtual void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
};

#endif
2 changes: 1 addition & 1 deletion src/server/qgsserverlogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SERVER_EXPORT QgsServerLogger : public QgsMessageLogConsole
* \param tag tag of the message
* \param level log level of the message
*/
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level ) override;

protected:
QgsServerLogger();
Expand Down

0 comments on commit 9eaee8f

Please sign in to comment.