From 51fee28bf4941dfcb2471aea0b1ed8b69a4128d6 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 16 Jul 2012 19:38:50 -0700 Subject: Add a warning log if dnspython is not found for SRV lookup. Closes issue #183 --- sleekxmpp/xmlstream/resolver.py | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3