deepak4babu opened a new issue, #58965:
URL: https://github.com/apache/airflow/issues/58965

   ### Apache Airflow version
   
   Other Airflow 2/3 version (please specify below)
   
   ### If "Other Airflow 2/3 version" selected, which one?
   
   3.0.6
   
   ### What happened?
   
   Debug logs of tasks are not logged even when AIRFLOW__LOGGING__LOGGING_LEVEL 
is set to DEBUG
   
   ### What you think should happen instead?
   
   Debug logs in tasks should also be printed in logs.
   
   ### How to reproduce
   
   Create a sampe dag with debug logs like below
   Set AIRFLOW__LOGGING__LOGGING_LEVEL to Debug
   Run the dag
   
   ```python
   from datetime import datetime
   from airflow.sdk import task, dag
   import logging
   from time import sleep
   
   
   log = logging.getLogger(__name__)
   
   
   @dag(
       schedule="*/5 * * * *",
       start_date=datetime(2021, 1, 1),
       catchup=False,
   )
   def sample_debug_dag():
       @task()
       def sample_task1():
           for i in range(300):
               log.debug("Debug log", i)
               sleep(1)
           print("Test")
   
       sample_task1()
   
   sample_debug_dag()
   ```
   
   ### Operating System
   
   PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" 
VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian 
HOME_URL="https://www.debian.org/"; SUPPORT_URL="https://www.debian.org/support"; 
BUG_REPORT_URL="https://bugs.debian.org/";
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-celery==3.12.2
   apache-airflow-providers-cncf-kubernetes==10.7.0
   apache-airflow-providers-common-compat==1.7.3
   apache-airflow-providers-common-io==1.6.2
   apache-airflow-providers-common-sql==1.27.5
   apache-airflow-providers-fab==2.4.1
   apache-airflow-providers-ftp==3.13.2
   apache-airflow-providers-http==5.3.3
   apache-airflow-providers-imap==3.9.2
   apache-airflow-providers-postgres==6.2.3
   apache-airflow-providers-smtp==2.2.0
   apache-airflow-providers-sqlite==4.1.2
   apache-airflow-providers-standard==1.6.0
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   We use a slightly modified version of official helm chart
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.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