ashb commented on issue #59634:
URL: https://github.com/apache/airflow/issues/59634#issuecomment-3755443222
I am unable to reproduce this using the following dag:
```python
from logging import getLogger
logger = getLogger(__name__)
from airflow.sdk import DAG, task
with DAG(
"logtest",
catchup=False,
schedule=None,
) as dag:
@task
def get_conn():
getLogger("hello").info("Hi %s", "%d")
logger.info("top level?")
get_conn()
```
And I see this output:
```
[2026-01-15 15:33:04] INFO - DAG bundles loaded: dags-folder
source=airflow.dag_processing.bundles.manager.DagBundlesManager
loc=manager.py:209
[2026-01-15 15:33:04] INFO - Filling up the DagBag from /files/dags/aip72.py
source=airflow.dag_processing.dagbag.BundleDagBag loc=dagbag.py:631
[2026-01-15 15:33:04] INFO - Hi %d source=hello loc=aip72.py:35
[2026-01-15 15:33:04] INFO - top level?
source=unusual_prefix_d6e0185a8e47e71ac430e5c12d37af71098c0246_aip72
loc=aip72.py:36
[2026-01-15 15:33:04] INFO - Done. Returned value was: None
source=airflow.task.operators.airflow.providers.standard.decorators.python._PythonDecoratedOperator
loc=python.py:216
```
<img width="730" height="129" alt="Image"
src="https://github.com/user-attachments/assets/16dd0e87-1702-4638-95ab-592aa62efd78"
/>
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]