fix: Emit a warning message rather than an exception on query failure (#9811)

* Emit a warning message rather than an exception on query failure

* Add exc_info=True to warning message
This commit is contained in:
Will Barrett 2020-05-20 13:13:28 -07:00 committed by GitHub
parent 428ad70aac
commit 13c24372b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1082,7 +1082,7 @@ class SqlaTable(Model, BaseDatasource):
except Exception as ex:
df = pd.DataFrame()
status = utils.QueryStatus.FAILED
logger.exception(f"Query {sql} on schema {self.schema} failed")
logger.warning(f"Query {sql} on schema {self.schema} failed", exc_info=True)
db_engine_spec = self.database.db_engine_spec
errors = db_engine_spec.extract_errors(ex)