From 6792c15a7da7b36f17b4140542da63dc884cc1dd Mon Sep 17 00:00:00 2001 From: Akkariiin Date: Mon, 7 Aug 2017 14:34:11 +0800 Subject: [PATCH] change log info --- shadowsocks/asyncdns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 04444da..868ea61 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -284,7 +284,7 @@ class DNSResolver(object): (lambda t: t if type(t) == bytes else t.encode('utf8')), black_hostname_list )) - print('black_hostname_list init as : ' + str(self._black_hostname_list)) + logging.info('black_hostname_list init as : ' + str(self._black_hostname_list)) self._sock = None self._servers = None self._parse_resolv() @@ -473,7 +473,7 @@ class DNSResolver(object): ip = self._hosts[hostname] callback((hostname, ip), None) elif hostname in self._cache: - logging.debug('hit cache: %s', hostname) + logging.debug('hit cache: %s ==>> %s', hostname, self._cache[hostname]) ip = self._cache[hostname] callback((hostname, ip), None) elif any(hostname.endswith(t) for t in self._black_hostname_list):