Make worker thread dying log the address
This commit is contained in:
parent
702584c2e3
commit
4ce118f670
2
neomi.py
2
neomi.py
|
@ -154,7 +154,7 @@ class Serve(threading.Thread):
|
|||
try:
|
||||
self.handle_request()
|
||||
except BaseException as err: # Catch and log exceptions instead of letting to crash, as we need to update the worker thread count on abnormal exit as well
|
||||
error('Worker thread died with: %s' % err)
|
||||
error('Worker thread (%s) died with: %s' % (self.address, err))
|
||||
finally:
|
||||
self.sock.close()
|
||||
with threads_lock:
|
||||
|
|
Loading…
Reference in New Issue