Skip to content
Permalink
Browse files

added plugin tag for QgsMessageLog messages

  • Loading branch information
luipir committed May 30, 2017
1 parent ed03e99 commit b3652938a3abcc75b5669c92bf86fcbe8dcd016e
Showing with 2 additions and 2 deletions.
  1. +1 −1 python/plugins/db_manager/db_tree.py
  2. +1 −1 python/plugins/db_manager/layer_preview.py
@@ -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)
@@ -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

0 comments on commit b365293

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