Log BrokenPipeError as warning
This commit is contained in:
parent
723d1f4370
commit
f41d022038
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class UiWSGIHandler(WebSocketHandler):
|
||||||
err_name = "UiWSGIHandler websocket" if "HTTP_UPGRADE" in self.environ else "UiWSGIHandler"
|
err_name = "UiWSGIHandler websocket" if "HTTP_UPGRADE" in self.environ else "UiWSGIHandler"
|
||||||
try:
|
try:
|
||||||
super(UiWSGIHandler, self).run_application()
|
super(UiWSGIHandler, self).run_application()
|
||||||
except (ConnectionAbortedError, ConnectionResetError) as err:
|
except (ConnectionAbortedError, ConnectionResetError, BrokenPipeError) as err:
|
||||||
logging.warning("%s connection error: %s" % (err_name, err))
|
logging.warning("%s connection error: %s" % (err_name, err))
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logging.warning("%s error: %s" % (err_name, Debug.formatException(err)))
|
logging.warning("%s error: %s" % (err_name, Debug.formatException(err)))
|
||||||
|
|
Loading…
Reference in a new issue