josh-fell opened a new pull request #21162:
URL: https://github.com/apache/airflow/pull/21162


   Related: #19883
   
   Currently task logs can contain all of connection details depending on how 
the associated connection to the task is configured (i.e. if `host` is a 
provided connection attr). These details are logged at the INFO level but seem 
more appropriate for debugging.
   
   This PR intends to clean up this connection logging a little. The INFO level 
logging will contain only the connection ID that is used while the details of 
the connection are changed to the DEBUG level (and still masked). Additionally 
the connection ID info is logged regardless of the provided connection attrs 
(i.e. removing the `host` check). Lastly this change also has a small added 
benefit of not accidentally or unknowingly exposing connection info that users 
do not want in their logs _first_ rather than the details be exposed and then 
having to setup configuration to mask them later (assuming the exposure is 
noticed at all).
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to