refine log
This commit is contained in:
parent
be696555a7
commit
a1f56d1233
2 changed files with 2 additions and 2 deletions
|
@ -364,7 +364,7 @@ class DNSResolver(object):
|
||||||
callback((hostname, ip), error)
|
callback((hostname, ip), error)
|
||||||
else:
|
else:
|
||||||
callback((hostname, None),
|
callback((hostname, None),
|
||||||
Exception('unknown hostname %s' % hostname))
|
Exception('unable to parse hostname %s' % hostname))
|
||||||
if hostname in self._hostname_to_cb:
|
if hostname in self._hostname_to_cb:
|
||||||
del self._hostname_to_cb[hostname]
|
del self._hostname_to_cb[hostname]
|
||||||
if hostname in self._hostname_status:
|
if hostname in self._hostname_status:
|
||||||
|
|
|
@ -587,7 +587,7 @@ class TCPRelayHandler(object):
|
||||||
# just trim VER CMD RSV
|
# just trim VER CMD RSV
|
||||||
data = data[3:]
|
data = data[3:]
|
||||||
else:
|
else:
|
||||||
logging.error('unknown command %d', cmd)
|
logging.error('invalid command %d', cmd)
|
||||||
self.destroy()
|
self.destroy()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue