This is an automated email from the ASF dual-hosted git repository.

dstandish pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 63062c2743 Simplify log message for connection retrieval (#41288)
63062c2743 is described below

commit 63062c2743564bf47d4abd6822a88e06b131226e
Author: Daniel Standish <[email protected]>
AuthorDate: Tue Aug 6 13:47:21 2024 -0700

    Simplify log message for connection retrieval (#41288)
    
    All we know here is that the connection is being retrieved.  We don't know 
that it is for task execution. It might be for uploading of logs, or callback 
execution, webserver logs reader, etc.  So let's say less in order to tell the 
truth.
---
 airflow/hooks/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/hooks/base.py b/airflow/hooks/base.py
index 7219cee1cd..d2a47e321c 100644
--- a/airflow/hooks/base.py
+++ b/airflow/hooks/base.py
@@ -81,7 +81,7 @@ class BaseHook(LoggingMixin):
         from airflow.models.connection import Connection
 
         conn = Connection.get_connection_from_secrets(conn_id)
-        log.info("Using connection ID '%s' for task execution.", conn.conn_id)
+        log.info("Retrieving connection '%s'", conn.conn_id)
         return conn
 
     @classmethod

Reply via email to