potiuk commented on issue #21013:
URL: https://github.com/apache/airflow/issues/21013#issuecomment-1018493602


   You are using logging module improperly. By `logging,info` (and similar) you 
are logging stuff to "root" logger:
   
   https://docs.python.org/3/library/logging.html#logging.info
   
   > logging.info(msg, *args, **kwargs)ΒΆ
   Logs a message with level INFO on the root logger. The arguments are 
interpreted as for debug().
   
   Instead you should log message to "airflow.task" logger if you want messages 
to show up in task log:
   
   ```
   logger = logging.getLogger("airflow.task")
   logger.info(...)
   ``


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