GitHub user PowerToThePeople111 added a comment to the discussion: logging in 
Operator not work

Ok, we got it to work by changing the info logs to warn logs:

So every time, we want to log something, we call:
```python
def log_info(message):
    logging.getLogger("airflow.task").warning(message)
```

>From our guy in the infra team i know that we do remote logging with log level 
>set to info.


The logs which are being produced show those warnings as infos:
[2024-11-07, 12:59:20 UTC] {process_utils.py:191} INFO - XYZ
[2024-11-07, 12:59:26 UTC] {process_utils.py:191} INFO - XYZ
[2024-11-07, 12:59:33 UTC] {process_utils.py:191} INFO - XYZ
[2024-11-07, 12:59:40 UTC] {process_utils.py:191} INFO - XYZ

So this workaround is doing it for us.

GitHub link: 
https://github.com/apache/airflow/discussions/21021#discussioncomment-11177775

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to