mirror of
https://github.com/apache/superset.git
synced 2024-09-19 03:59:49 -04:00
chore: stop logging SupersetExceptions
if status < 500 (#14088)
* setup exception * figured out * Update base.py
This commit is contained in:
parent
f453287a07
commit
3a011ecc06
@ -198,6 +198,7 @@ def handle_api_exception(
|
|||||||
logger.warning(ex)
|
logger.warning(ex)
|
||||||
return json_errors_response(errors=[ex.error], status=ex.status)
|
return json_errors_response(errors=[ex.error], status=ex.status)
|
||||||
except SupersetException as ex:
|
except SupersetException as ex:
|
||||||
|
if ex.status >= 500:
|
||||||
logger.exception(ex)
|
logger.exception(ex)
|
||||||
return json_error_response(
|
return json_error_response(
|
||||||
utils.error_msg_from_exception(ex), status=ex.status
|
utils.error_msg_from_exception(ex), status=ex.status
|
||||||
|
Loading…
Reference in New Issue
Block a user