-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed as not planned
Labels
Stale Bug Reportaffected_version:2.9Issues Reported for 2.9Issues Reported for 2.9area:logginggood first issuekind:bugThis is a clearly a bugThis is a clearly a bug
Description
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 -- real log
downloaded from UI
Web UI:

What you think should happen instead?
I think that they should be equal in information that was loggen and saved.
How to reproduce
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
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Stale Bug Reportaffected_version:2.9Issues Reported for 2.9Issues Reported for 2.9area:logginggood first issuekind:bugThis is a clearly a bugThis is a clearly a bug