diff --git a/neomi.py b/neomi.py index f3c4ad4..8d8fb9a 100644 --- a/neomi.py +++ b/neomi.py @@ -751,7 +751,11 @@ 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 (%s) died with: %s' % (self.address, err)) + if isinstance(err, EmptyRequestError): + # No real reason to log these, would get kinda spammy if we did due to mobile Chrome liking to cause these + pass + else: + error('Worker thread (%s) died with: %s' % (self.address, err)) finally: self.sock.close() self.controller.thread_end()