diff options
author | Lance Stout <lancestout@gmail.com> | 2012-02-10 06:46:51 +0100 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-02-10 06:46:51 +0100 |
commit | ca5145c21064ec75f2c388dd4b6e3afee8da1a21 (patch) | |
tree | 1a3b22e64d31f2242ebb92f8c74a651e849769d4 | |
parent | 1a272fd276fd5ab16506b205fcc75ba581873bc6 (diff) | |
download | slixmpp-ca5145c21064ec75f2c388dd4b6e3afee8da1a21.tar.gz slixmpp-ca5145c21064ec75f2c388dd4b6e3afee8da1a21.tar.bz2 slixmpp-ca5145c21064ec75f2c388dd4b6e3afee8da1a21.tar.xz slixmpp-ca5145c21064ec75f2c388dd4b6e3afee8da1a21.zip |
Fix IPv6 query logging.
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index fe8f1bf3..a6ea53f9 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -873,22 +873,22 @@ class XMLStream(object): v4_answers = [((domain, port), 0, 0)] else: for ans in v4_answers: - log.debug("Found A record: %s", ans[0]) + log.debug("Found A record: %s", ans.address) answers.append(((ans.address, port), 0, 0)) try: log.debug("Querying AAAA records for %s" % domain) v6_answers = resolver.query(domain, dns.rdatatype.AAAA) except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer): - log.warning("No A records for %s", domain) + log.warning("No AAAA records for %s", domain) v6_answers = [((domain, port), 0, 0)] except dns.exception.Timeout: log.warning("DNS resolution timed out " + \ - "for A record of %s", domain) + "for AAAA record of %s", domain) v6_answers = [((domain, port), 0, 0)] else: for ans in v6_answers: - log.debug("Found AAAA record: %s", ans[0]) + log.debug("Found AAAA record: %s", ans.address) answers.append(((ans.address, port), 0, 0)) return answers |