You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "msaparito-lexipol (via GitHub)" <gi...@apache.org> on 2025/10/13 18:31:30 UTC

[D] Airflow 3.x logs removal of the source value [airflow]

GitHub user msaparito-lexipol created a discussion: Airflow 3.x logs removal of the source value

Hello, I'm having a hard time removing the source value from the logging happening within our environment and I'm simply looking to remove it because it's often redundant. I've added file and line back into the logs of 3.0.6, but the source seems to be impossible for me to remove. Example:

```
[2025-10-13, 13:49:51] INFO - [base] {example_file.py:60} INFO - hello world : source="airflow.providers.cncf.kubernetes.utils.pod_manager.PodManager"
```

This clutters logs for us because we use them as literals in most cases and also contain the line and location within the file the log printout occurred. Is there a simple way to remove the source values from the logging? Such as a flag or similar?

GitHub link: https://github.com/apache/airflow/discussions/56597

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Airflow 3.x logs removal of the source value [airflow]

Posted by "msaparito-lexipol (via GitHub)" <gi...@apache.org>.
GitHub user msaparito-lexipol edited a discussion: Airflow 3.x logs removal of the source value

Hello, I'm having a hard time removing the source value from the logging happening within our environment and I'm simply looking to remove it because it's often redundant. I've added file and line back into the logs of 3.0.6, but the source seems to be impossible for me to remove. 

EDIT: To note, I'm only using 3.0.6 instead of 3.1 or 2.10 due to 3.0.6 is the current cloud provider version. So I'm looking to understand how to manipulate logging in 3.x airflow, so that I can remove features that are not desired.

Example:

```
[2025-10-13, 13:49:51] INFO - [base] {example_file.py:60} INFO - hello world : source="airflow.providers.cncf.kubernetes.utils.pod_manager.PodManager"
```

In the above example, it would be anything after `hello world`. Meaning `: source="airflow.providers.cncf.kubernetes.utils.pod_manager.PodManager"`

This clutters logs for us because we use them as literals in most cases and also contain the line and location within the file the log printout occurred. Is there a simple way to remove the source values from the logging? Such as a flag or similar?

GitHub link: https://github.com/apache/airflow/discussions/56597

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Airflow 3.x logs removal of the source value [airflow]

Posted by "msaparito-lexipol (via GitHub)" <gi...@apache.org>.
GitHub user msaparito-lexipol edited a discussion: Airflow 3.x logs removal of the source value

Hello, I'm having a hard time removing the source value from the logging happening within our environment and I'm simply looking to remove it because it's often redundant. I've added file and line back into the logs of 3.0.6, but the source seems to be impossible for me to remove. 

EDIT: To note, I'm only using 3.0.6 instead of 3.1 or 2.10 due to 3.0.6 is the current cloud provider version. So I'm looking to understand how to manipulate logging in 3.x airflow, so that I can remove features that are not desired.

Example:

```
[2025-10-13, 13:49:51] INFO - [base] {example_file.py:60} INFO - hello world : source="airflow.providers.cncf.kubernetes.utils.pod_manager.PodManager"
```

This clutters logs for us because we use them as literals in most cases and also contain the line and location within the file the log printout occurred. Is there a simple way to remove the source values from the logging? Such as a flag or similar?

GitHub link: https://github.com/apache/airflow/discussions/56597

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org