justinpakzad commented on issue #58965:
URL: https://github.com/apache/airflow/issues/58965#issuecomment-3690361683

   Hey, I would like to work on this issue.
   
   I ran some tests with the example dag provided and when we have the logger 
set to the airflow task log: 
   `log = logging.getLogger("airflow.task")` the debug output works fine. 
   
   I did some digging and I found that in the `configure_logging` function, the 
root logger level is hard coded to INFO  
   `config["root"] = {
           "handlers": ["default"],
           "level": "INFO",
           "propagate": True,
      }`
   
   Since the user defined loggers like the one in the example above inherits 
from the root, it wouldn't pick up the DEBUG level even if 
AIRFLOW__LOGGING__LOGGING_LEVEL=DEBUG is set. 
   
   Is that the expected behavior? If it's a bug then I think the fix would be 
to replace the hard-coded INFO value with log_level.upper(). Happy to open a PR 
if that's the case. Thanks.


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