From 4ce118f670ddab26bd47b9e4c9376977234436dd Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Tue, 12 Jul 2016 17:45:55 +0300 Subject: [PATCH] Make worker thread dying log the address --- neomi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neomi.py b/neomi.py index 25f81cc..eadca77 100644 --- a/neomi.py +++ b/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: