From ca5145c21064ec75f2c388dd4b6e3afee8da1a21 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 10 Feb 2012 06:46:51 +0100 Subject: Fix IPv6 query logging. --- sleekxmpp/xmlstream/xmlstream.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sleekxmpp') 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 -- cgit v1.2.3