You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ta...@apache.org on 2021/05/03 18:33:40 UTC

[superset] branch master updated: fix(logging): log unexpected exceptions as exceptions (#14399)

This is an automated email from the ASF dual-hosted git repository.

tai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b9fd24  fix(logging): log unexpected exceptions as exceptions (#14399)
0b9fd24 is described below

commit 0b9fd24cf39ee883d06451cf41f7f0d191a2f0ad
Author: ʈᵃᵢ <td...@gmail.com>
AuthorDate: Mon May 3 11:33:02 2021 -0700

    fix(logging): log unexpected exceptions as exceptions (#14399)
---
 superset/views/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/views/base.py b/superset/views/base.py
index 058e420..72736f8 100644
--- a/superset/views/base.py
+++ b/superset/views/base.py
@@ -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(