mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: add stack trace to all calls of logger.error (#14382)
This commit is contained in:
committed by
GitHub
parent
13cfc421d5
commit
11260b3117
@@ -836,7 +836,7 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
# It's expected that some dialects don't implement the comment method
|
||||
pass
|
||||
except Exception as ex: # pylint: disable=broad-except
|
||||
logger.error("Unexpected error while fetching table comment")
|
||||
logger.error("Unexpected error while fetching table comment", exc_info=True)
|
||||
logger.exception(ex)
|
||||
return comment
|
||||
|
||||
@@ -1218,7 +1218,7 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
try:
|
||||
extra = json.loads(database.extra)
|
||||
except json.JSONDecodeError as ex:
|
||||
logger.error(ex)
|
||||
logger.error(ex, exc_info=True)
|
||||
raise ex
|
||||
return extra
|
||||
|
||||
|
||||
Reference in New Issue
Block a user