eschutho commented on code in PR #30410:
URL: https://github.com/apache/superset/pull/30410#discussion_r1777852409
##########
superset/views/error_handling.py:
##########
@@ -108,8 +109,8 @@ def wraps(self: BaseSupersetView, *args: Any, **kwargs:
Any) -> FlaskResponse:
logger.warning("SupersetErrorException", exc_info=True)
return json_error_response([ex.error], status=ex.status)
except SupersetException as ex:
- if ex.status >= 500:
- logger.exception(ex)
+ logger_func, _ = get_logger_from_status(ex.status)
+ logger_func(ex.message, exc_info=True)
Review Comment:
this is also in https://github.com/apache/superset/pull/30365
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]