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 [email protected].
To unsubscribe, please send an email to: [email protected]