mirror of
https://github.com/apache/superset.git
synced 2026-06-07 16:49:17 +00:00
fix(logging): log unexpected exceptions as exceptions (#14399)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user