Mercurial > libervia-backend
diff src/plugins/plugin_xep_0092.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 | 8ca5c990ed92 |
children | 069ad98b360d |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0092.py Sat Apr 19 16:48:26 2014 +0200 +++ b/src/plugins/plugin_xep_0092.py Sat Apr 19 19:19:19 2014 +0200 @@ -23,7 +23,8 @@ from twisted.words.protocols.jabber import jid from wokkel import compat from sat.core import exceptions -from logging import debug, info, warning, error +from sat.core.log import getLogger +log = getLogger(__name__) NS_VERSION = "jabber:iq:version" TIMEOUT = 10 @@ -44,13 +45,13 @@ class XEP_0092(object): def __init__(self, host): - info(_("Plugin XEP_0092 initialization")) + log.info(_("Plugin XEP_0092 initialization")) self.host = host host.bridge.addMethod("getSoftwareVersion", ".plugin", in_sign='ss', out_sign='(sss)', method=self._getVersion, async=True) try: self.host.plugins[C.TEXT_CMDS].addWhoIsCb(self._whois, 50) except KeyError: - info(_("Text commands not available")) + log.info(_("Text commands not available")) def _getVersion(self, entity_jid_s, profile_key): def prepareForBridge(data):