Commit 6b7cf770 authored by Brian May's avatar Brian May

Improve debugging.

parent b26e1ee6
...@@ -221,7 +221,7 @@ def main(): ...@@ -221,7 +221,7 @@ def main():
dnshandlers = {} dnshandlers = {}
def dns_req(channel, data): def dns_req(channel, data):
debug2('Incoming DNS request.\n') debug2('Incoming DNS request channel=%d.\n' % channel)
h = DnsProxy(mux, channel, data) h = DnsProxy(mux, channel, data)
handlers.append(h) handlers.append(h)
dnshandlers[channel] = h dnshandlers[channel] = h
...@@ -243,5 +243,6 @@ def main(): ...@@ -243,5 +243,6 @@ def main():
now = time.time() now = time.time()
for channel,h in dnshandlers.items(): for channel,h in dnshandlers.items():
if h.timeout < now or not h.ok: if h.timeout < now or not h.ok:
debug3('expiring dnsreqs channel=%d\n' % channel)
del dnshandlers[channel] del dnshandlers[channel]
h.ok = False h.ok = False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment