fix(logging): log unexpected exceptions as exceptions (#14399)

This commit is contained in:
ʈᵃᵢ 2021-05-03 11:33:02 -07:00 committed by GitHub
parent 2f9efb2e23
commit 0b9fd24cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(