You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/17 05:00:32 UTC
[GitHub] [airflow] uranusjr commented on issue #16295: JDBC operator not logging errors
uranusjr commented on issue #16295:
URL: https://github.com/apache/airflow/issues/16295#issuecomment-1014142577
Is it not possible to do this instead?
```python
def _run_command(self, cur, sql_statement, parameters):
try:
return super()._run_command(cur, sql_statement, parameters)
except (jaydebeapi.DatabaseError, jaydebeapi.InterfaceError):
self.log.exception("Failed to execute statement in JDBC")
raise
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org