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/06/22 13:13:05 UTC

[GitHub] [airflow] holly-evans commented on a diff in pull request #24570: Add parameter to turn off SQL query logging

holly-evans commented on code in PR #24570:
URL: https://github.com/apache/airflow/pull/24570#discussion_r903726012


##########
airflow/hooks/dbapi.py:
##########
@@ -69,7 +70,7 @@ class DbApiHook(BaseHook):
     # Override with db-specific query to check connection
     _test_connection_sql = "select 1"
 
-    def __init__(self, *args, schema: Optional[str] = None, **kwargs):
+    def __init__(self, *args, schema: Optional[str] = None, log_sql: Optional[bool] = True, **kwargs):

Review Comment:
   ```suggestion
       def __init__(self, *args, schema: Optional[str] = None, log_sql: bool = True, **kwargs):
   ```



-- 
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