Skip to content

why exceptions are raised without logged? #1008

Discussion options

You must be logged in to vote

logging of errors using log.error() is intended to be performed when exceptions are caught, not when they are thrown. that's why Python logging includes an exc_info option; exceptions have a lot more detail when they are caught rather than thrown. Therefore if the flask-alembic module is using the Alembic API, catching an exception, and then squashing it without it being logged, that's a bug in that application and you should report it over there.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dongzhenpu
Comment options

Answer selected by Dongzhenpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants