Don't log empty requests
This commit is contained in:
parent
0a8e10db90
commit
97d01a088c
1 changed files with 5 additions and 1 deletions
4
neomi.py
4
neomi.py
|
@ -751,6 +751,10 @@ class Serve(threading.Thread):
|
||||||
try:
|
try:
|
||||||
self.handle_request()
|
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
|
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
|
||||||
|
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))
|
error('Worker thread (%s) died with: %s' % (self.address, err))
|
||||||
finally:
|
finally:
|
||||||
self.sock.close()
|
self.sock.close()
|
||||||
|
|
Loading…
Reference in a new issue