summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0066/oob.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-07-03 20:39:03 -0700
committerLance Stout <lancestout@gmail.com>2011-07-03 20:39:03 -0700
commitcccccdcc0aae2be9a00012c872ab1fad60b2b971 (patch)
treed8b6b9f3dafc6ef76c88dcbe20fae2d23b5d261a /sleekxmpp/plugins/xep_0066/oob.py
parent8d384ce44f62b14504df5ea22e54b92179c6d3c7 (diff)
downloadslixmpp-cccccdcc0aae2be9a00012c872ab1fad60b2b971.tar.gz
slixmpp-cccccdcc0aae2be9a00012c872ab1fad60b2b971.tar.bz2
slixmpp-cccccdcc0aae2be9a00012c872ab1fad60b2b971.tar.xz
slixmpp-cccccdcc0aae2be9a00012c872ab1fad60b2b971.zip
Add logging to XEP-0066.
Diffstat (limited to 'sleekxmpp/plugins/xep_0066/oob.py')
-rw-r--r--sleekxmpp/plugins/xep_0066/oob.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0066/oob.py b/sleekxmpp/plugins/xep_0066/oob.py
index b4322351..1f79492d 100644
--- a/sleekxmpp/plugins/xep_0066/oob.py
+++ b/sleekxmpp/plugins/xep_0066/oob.py
@@ -6,6 +6,7 @@
See the file LICENSE for copying permission.
"""
+import logging
from sleekxmpp.stanza import Message, Presence, Iq
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
+log = logging.getLogger(__name__)
+
+
class xep_0066(base_plugin):
"""
@@ -86,4 +90,6 @@ class xep_0066(base_plugin):
def _handle_transfer(self, iq):
"""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)