mirror of
https://github.com/apache/superset.git
synced 2026-06-01 21:59:26 +00:00
Log warning for failure to get table/view names from DB (#11374)
This commit is contained in:
@@ -508,7 +508,7 @@ class Database(
|
||||
utils.DatasourceName(table=table, schema=schema) for table in tables
|
||||
]
|
||||
except Exception as ex: # pylint: disable=broad-except
|
||||
logger.exception(ex)
|
||||
logger.warning(ex)
|
||||
|
||||
@cache_util.memoized_func(
|
||||
key=lambda *args, **kwargs: f"db:{{}}:schema:{kwargs.get('schema')}:view_list", # type: ignore
|
||||
@@ -538,7 +538,7 @@ class Database(
|
||||
)
|
||||
return [utils.DatasourceName(table=view, schema=schema) for view in views]
|
||||
except Exception as ex: # pylint: disable=broad-except
|
||||
logger.exception(ex)
|
||||
logger.warning(ex)
|
||||
|
||||
@cache_util.memoized_func(
|
||||
key=lambda *args, **kwargs: "db:{}:schema_list", attribute_in_key="id"
|
||||
|
||||
Reference in New Issue
Block a user