o-nikolas opened a new pull request #20858:
URL: https://github.com/apache/airflow/pull/20858


   Hey folks, this issue was brought up in [this Slack 
thread](https://apache-airflow.slack.com/archives/CCRR5EBA7/p1641501716009300), 
where base_aws.py spams scheduler logs with logging regarding how the boto 
session is being constructed. 
   
     base_aws.py was annotated with logging starting in ~2.0, but this
     logging was added at info level. Meaning every time a boto session
     is created many log lines are added regarding how the session was
     constructed. Most of this logging is better suited at the debug
     level to avoid spamming the Airflow logs every time a boto session
     is created, which can be very frequent.
   
   I've gone through and moved some of the heavy hitters to debug level 
(including messages that are logged unconditionally), but I tried to leave some 
of the less common logging to be at info level since I suspected push back. Let 
me know what folks think!
   
   Here is an example snippet from cloudwatch showing the kind of log spam 
we're talking about:
   
   ![Screenshot from 2022-01-11 
11-18-15](https://user-images.githubusercontent.com/65743084/149399425-aca4c653-9c08-4802-a4f6-385cf85707cd.png)
    
   
   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   ---
   **^ 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