Make worker thread dying log the address

This commit is contained in:
Juhani Haverinen 2016-07-12 17:45:55 +03:00
parent 702584c2e3
commit 4ce118f670
1 changed files with 1 additions and 1 deletions

View File

@ -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: