mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Add logging to XEP-0066.
This commit is contained in:
parent
8d384ce44f
commit
cccccdcc0a
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
See the file LICENSE for copying permission.
|
See the file LICENSE for copying permission.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from sleekxmpp.stanza import Message, Presence, Iq
|
from sleekxmpp.stanza import Message, Presence, Iq
|
||||||
from sleekxmpp.xmlstream import register_stanza_plugin
|
from sleekxmpp.xmlstream import register_stanza_plugin
|
||||||
|
@ -15,6 +16,9 @@ from sleekxmpp.plugins.base import base_plugin
|
||||||
from sleekxmpp.plugins.xep_0066 import stanza
|
from sleekxmpp.plugins.xep_0066 import stanza
|
||||||
|
|
||||||
|
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class xep_0066(base_plugin):
|
class xep_0066(base_plugin):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -86,4 +90,6 @@ class xep_0066(base_plugin):
|
||||||
|
|
||||||
def _handle_transfer(self, iq):
|
def _handle_transfer(self, iq):
|
||||||
"""Handle receiving an out-of-band transfer request."""
|
"""Handle receiving an out-of-band transfer request."""
|
||||||
|
log.debug('Received out-of-band data request for %s from %s:' % (
|
||||||
|
iq['oob_transfer']['url'], iq['from']))
|
||||||
self.xmpp.event('oob_transfer', iq)
|
self.xmpp.event('oob_transfer', iq)
|
||||||
|
|
Loading…
Reference in a new issue