enrique-ayala opened a new issue, #31856:
URL: https://github.com/apache/airflow/issues/31856
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
Logs of the mapped tasks are mixed together .
### What you think should happen instead
I should expect to see logs from a particular mapped instance .
### How to reproduce
1. Im using example from docs with a simple print statement.
```
from datetime import datetime
from airflow import DAG
from airflow.decorators import task
with DAG(dag_id="simple_mapping", start_date=datetime(2022, 3, 4)) as dag:
@task
def add_one(x: int):
print(f"x: {x}")
return x + 1
@task
def sum_it(values):
total = sum(values)
print(f"Total was {total}")
added_values = add_one.expand(x=[1, 2, 3])
sum_it(added_values)
```
2. From graph view click on `add_one[3]` task > At top click on Map Index
dropdown > Select 0 > Click on Log. You will see combined logs from instances
1 and 2 :

### Operating System
"Debian GNU/Linux 11 (bullseye)"
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other 3rd-party Helm chart
### Deployment details
_No response_
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]