summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-16 19:38:50 -0700
committerLance Stout <lancestout@gmail.com>2012-07-16 19:38:50 -0700
commit51fee28bf4941dfcb2471aea0b1ed8b69a4128d6 (patch)
treee5264ed3dce7a34dfbcc538376bab76c748094a6
parente8a3e92ceb17d57ae95efd2a3fe7ed82c6ce2a2f (diff)
downloadslixmpp-51fee28bf4941dfcb2471aea0b1ed8b69a4128d6.tar.gz
slixmpp-51fee28bf4941dfcb2471aea0b1ed8b69a4128d6.tar.bz2
slixmpp-51fee28bf4941dfcb2471aea0b1ed8b69a4128d6.tar.xz
slixmpp-51fee28bf4941dfcb2471aea0b1ed8b69a4128d6.zip
Add a warning log if dnspython is not found for SRV lookup.
Closes issue #183
-rw-r--r--sleekxmpp/xmlstream/resolver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/resolver.py b/sleekxmpp/xmlstream/resolver.py
index 455ab8d0..0d7a8c0d 100644
--- a/sleekxmpp/xmlstream/resolver.py
+++ b/sleekxmpp/xmlstream/resolver.py
@@ -254,6 +254,7 @@ def get_SRV(host, port, service, proto='tcp', resolver=None):
by SRV priorities and weights.
"""
if resolver is None:
+ log.warning("DNS: dnspython not found. Can not use SRV lookup.")
return [(host, port)]
log.debug("DNS: Querying SRV records for %s" % host)