Zoynels opened a new issue, #39686: URL: https://github.com/apache/airflow/issues/39686
### Apache Airflow version 2.9.1 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? We print to log some information and saw that logs has difference between logs which stores in files and logs in UI (also downloaded logs). Difference is in "empty lines" (we need them in some cases). [stored in file](https://github.com/apache/airflow/files/15351061/stored.in.file.--.attempt.1.log) -- real log [downloaded from UI](https://github.com/apache/airflow/files/15351060/downloaded.from.UI.-.dag_id.test_logs_run_id.manual__2024-05-17T14_07_46.983687%2B00_00_task_id.print_log1_attempt.1.log) Web UI: ![image](https://github.com/apache/airflow/assets/5841616/887a27e6-517f-487b-83c4-27f3777182f9) ### What you think should happen instead? I think that they should be equal in information that was loggen and saved. ### How to reproduce ```python from airflow import DAG from airflow.decorators import task import pendulum with DAG( dag_id="test_logs", catchup=False, start_date=pendulum.datetime(2024, 5, 17, tz="UTC"), schedule=None, tags=["logs"], ) as dag1: @task() def print_log1(): print("1\n2\n\n3\r\n4\n\r5\n \n6") import logging logger = logging.getLogger(__name__) logger.info("1\n2\n\n3\r\n4\n\r5\n \n6") print_log1() ``` ### Operating System debian / docker ### Versions of Apache Airflow Providers _No response_ ### Deployment Docker-Compose ### Deployment details standard apache/airflow:2.9.1 ### 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: commits-unsubscr...@airflow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org