We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently exceptions are silenced when in debug mode and only show up in the responses.
The exception middleware should be changed such that when in debug mode, errors and their tracebacks are logged to the console.
The text was updated successfully, but these errors were encountered:
Assign this to me please, I'll attempt to fix this weekend
Sorry, something went wrong.
done
(958) Add exception logging in debug mode (#976)
21f4a2f
* feat: add console output for exceptions in debug mode * chore: middleware debug logging updates * feat: #958 testing passing * Update starlite/middleware/exceptions/middleware.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * chore: fixed test for middleware debug logging (#958) * Update tests/middleware/test_exception_handler_middleware.py * chore: fixed test for middleware debug logging (#958) * Use `get_logger` fixture to test exception logged in debug. - moves get_logger fixture to conftest.py for middleware tests - patches app logger in tests with one that propagates so caplog works. * chore: Updated assertions (#958) * Update starlite/middleware/exceptions/middleware.py Co-authored-by: Na'aman Hirschfeld <[email protected]> * chore: update logger method --------- Co-authored-by: Jacob Coffee <[email protected]> Co-authored-by: Cody Fincher <[email protected]> Co-authored-by: Na'aman Hirschfeld <[email protected]> Co-authored-by: provinzkraut <[email protected]> Co-authored-by: Peter Schutt <[email protected]> Co-authored-by: Peter Schutt <[email protected]> Co-authored-by: Peter Schutt <[email protected]>
JacobCoffee
Successfully merging a pull request may close this issue.
Currently exceptions are silenced when in debug mode and only show up in the responses.
The exception middleware should be changed such that when in debug mode, errors and their tracebacks are logged to the console.
The text was updated successfully, but these errors were encountered: