mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
fix(logging): log unexpected exceptions as exceptions (#14399)
This commit is contained in:
parent
2f9efb2e23
commit
0b9fd24cf3
@ -400,7 +400,7 @@ def show_command_errors(ex: CommandException) -> FlaskResponse:
|
||||
# Catch-all, to ensure all errors from the backend conform to SIP-40
|
||||
@superset_app.errorhandler(Exception)
|
||||
def show_unexpected_exception(ex: Exception) -> FlaskResponse:
|
||||
logger.warning(ex)
|
||||
logger.exception(ex)
|
||||
return json_errors_response(
|
||||
errors=[
|
||||
SupersetError(
|
||||
|
Loading…
Reference in New Issue
Block a user