core: use of the new core.log module:
/!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
This commit is contained in:
parent
dc5c042fe7
commit
501bc92528
1 changed files with 707 additions and 941 deletions
|
|
@ -23,7 +23,8 @@ from twisted.internet import reactor, defer
|
|||
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 @@ PLUGIN_INFO = {
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue