Browse Source

(feat) Allow main loop exceptions to bubble... will likely be logged by surrounding code

main
Michal Charemza 5 years ago
parent
commit
54eef147b2
No known key found for this signature in database GPG Key ID: 4BBAF0F6B73C4363
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      dnsrewriteproxy.py

+ 0
- 4
dnsrewriteproxy.py View File

@@ -101,10 +101,6 @@ def DnsProxy(
{'dnsrewriteproxy_requestid': ''.join(choices(request_id_alphabet, k=8))})
request_logger.info('Received request from %s', addr)
await upstream_queue.put((request_logger, request_data, addr))
except CancelledError:
pass
except Exception:
logger.exception('Error in main loop')
finally:
logger.info('Stopping: waiting for requests to finish')
await upstream_queue.join()


Loading…
Cancel
Save