diff src/plugins/plugin_xep_0085.py @ 993:301b342c697a

core: use of the new core.log module: /!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
author Goffi <goffi@goffi.org>
date Sat, 19 Apr 2014 19:19:19 +0200
parents c897c8d321b3
children 5ff9f9af9d1f
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py	Sat Apr 19 16:48:26 2014 +0200
+++ b/src/plugins/plugin_xep_0085.py	Sat Apr 19 19:19:19 2014 +0200
@@ -20,7 +20,8 @@
 from sat.core.i18n import _
 from sat.core.constants import Const as C
 from sat.core import exceptions
-from logging import info
+from sat.core.log import getLogger
+log = getLogger(__name__)
 from wokkel import disco, iwokkel
 from zope.interface import implements
 from twisted.words.protocols.jabber.jid import JID
@@ -91,7 +92,7 @@
     }
 
     def __init__(self, host):
-        info(_("Chat State Notifications plugin initialization"))
+        log.info(_("Chat State Notifications plugin initialization"))
         self.host = host
 
         # parameter value is retrieved before each use