You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "NilsJPWerner (via GitHub)" <gi...@apache.org> on 2025/07/08 22:13:14 UTC
[I] KubernetesPodOperator option to not output container name in log lines [airflow]
NilsJPWerner opened a new issue, #53054:
URL: https://github.com/apache/airflow/issues/53054
### Description
Currently KPO tasks always prefixes container logs with the container name because of this https://github.com/apache/airflow/blob/main/providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/utils/pod_manager.py#L535C41-L535C97
This often takes up a lot of horizontal space and seems largely redundant since the container name can be found in the task details. It would be great if the operator could take an option to either customize the log output with a function or turn off the container_name prefix.
### Use case/motivation
_No response_
### Related issues
_No response_
### Are you willing to submit a 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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] KubernetesPodOperator option to not output container name in log lines [airflow]
Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #53054:
URL: https://github.com/apache/airflow/issues/53054#issuecomment-3052417848
@NilsJPWerner, would you like this assigned?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] KubernetesPodOperator option to not output container name in log lines [airflow]
Posted by "NilsJPWerner (via GitHub)" <gi...@apache.org>.
NilsJPWerner commented on issue #53054:
URL: https://github.com/apache/airflow/issues/53054#issuecomment-3347635591
This is working now! Thank you @HsiuChuanHsu
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] KubernetesPodOperator option to not output container name in log lines [airflow]
Posted by "NilsJPWerner (via GitHub)" <gi...@apache.org>.
NilsJPWerner closed issue #53054: KubernetesPodOperator option to not output container name in log lines
URL: https://github.com/apache/airflow/issues/53054
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] KubernetesPodOperator option to not output container name in log lines [airflow]
Posted by "srics96 (via GitHub)" <gi...@apache.org>.
srics96 commented on issue #53054:
URL: https://github.com/apache/airflow/issues/53054#issuecomment-3071228737
Hi, can I take this please
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] KubernetesPodOperator option to not output container name in log lines [airflow]
Posted by "NilsJPWerner (via GitHub)" <gi...@apache.org>.
NilsJPWerner commented on issue #53054:
URL: https://github.com/apache/airflow/issues/53054#issuecomment-3053349172
If this is something that would be accepted I could take a look.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] KubernetesPodOperator option to not output container name in log lines [airflow]
Posted by "HsiuChuanHsu (via GitHub)" <gi...@apache.org>.
HsiuChuanHsu commented on issue #53054:
URL: https://github.com/apache/airflow/issues/53054#issuecomment-3097303741
Hi @NilsJPWerner & @jroachgolf84,
I went ahead and submit a potential solution. I have a PR ready that addresses the container name prefix customization and love to get some feedback from you.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org