Skip to content

Commit

Permalink
added plugin tag for QgsMessageLog messages
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed May 30, 2017
1 parent ed03e99 commit b365293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def addLayer(self):
layers = QgsMapLayerRegistry.instance().addMapLayers([layer])
if len(layers) != 1:
QgsMessageLog.logMessage(
self.tr("%1 is an invalid layer - not loaded").replace("%1", layer.publicSource()))
self.tr("%1 is an invalid layer - not loaded").replace("%1", layer.publicSource()), "DBManagerPlugin")
msgLabel = QLabel(self.tr(
"%1 is an invalid layer and cannot be loaded. Please check the <a href=\"#messageLog\">message log</a> for further info.").replace(
"%1", layer.publicSource()), self.mainWindow.infoBar)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/db_manager/layer_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _clear(self):
## skip TypeError and generic Exceptions fixes #15868
## generally due the remove of self.item object or C++ referenced object
except Exception as ex:
QgsMessageLog.logMessage(unicode(ex))
QgsMessageLog.logMessage(unicode(ex), "DBManagerPlugin")

self.item = None
self.dirty = False
Expand Down

0 comments on commit b365293

Please sign in to comment.