Skip to content

Commit

Permalink
馃悰 Make sure exceptions on WSGI get logged
Browse files Browse the repository at this point in the history
That stopped working after moving to the async implementation
  • Loading branch information
foosel committed May 16, 2024
1 parent 3a61906 commit b9a3ef0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/octoprint/server/util/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,9 @@ def next_chunk():
request.connection.finish()
self._log(status_code, request)

except Exception:
logging.getLogger(__name__).exception("Exception in WSGI application")

finally:
if future is not None:
future.set_result(None)
Expand Down

0 comments on commit b9a3ef0

Please sign in to comment.