Dachary has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/313050

Change subject: plugin: prefix log with the plugin name
......................................................................

plugin: prefix log with the plugin name

So that similar messages from various plugins are not confused.

Change-Id: I032a8953ccf14877bf799946558d8f8e3f786f60
Signed-off-by: Loic Dachary <[email protected]>
---
M FLOSSbot/plugin.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/FLOSSbot 
refs/changes/50/313050/1

diff --git a/FLOSSbot/plugin.py b/FLOSSbot/plugin.py
index 5064fdb..259df3f 100644
--- a/FLOSSbot/plugin.py
+++ b/FLOSSbot/plugin.py
@@ -61,6 +61,7 @@
     def log(self, fun, item, message):
         label = item.labels.get('en', 'no label')
         fun("http://wikidata.org/wiki/"; + item.getID() +
+            " " + self.__class__.__name__ +
             " " + label + " " + message)
 
     def run_catch(self, item):

-- 
To view, visit https://gerrit.wikimedia.org/r/313050
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I032a8953ccf14877bf799946558d8f8e3f786f60
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/FLOSSbot
Gerrit-Branch: master
Gerrit-Owner: Dachary <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to