pod logs enhancements: option to color logs#13490
pod logs enhancements: option to color logs#13490openshift-merge-robot merged 1 commit intocontainers:mainfrom
Conversation
cmd/podman/containers/logs.go
Outdated
cmd/podman/pods/logs.go
Outdated
cmd/podman/pods/logs.go
Outdated
There was a problem hiding this comment.
Why plural? I think just --color would be even better.
There was a problem hiding this comment.
could we make it a string so in future we can extend it if needed?
e.g. GNU diff and ls have --color={never,always,auto} where --color=auto detects if the stdout is a tty before turning on colors.
There was a problem hiding this comment.
We can also extend a bool in the future, it is easy to change it to a string while still keeping the --color only syntax.
libpod/container_log.go
Outdated
There was a problem hiding this comment.
Just use Colors and option.Colors
|
Please rebase and force push your commit. There should only be one commit. |
|
Your PR is still includes many old PRs please rebase and only submit your changes. |
c5e16ee to
9a523ab
Compare
f2689ec to
c62587e
Compare
5b4c683 to
283fd60
Compare
80d9a4d to
a54a783
Compare
|
You need to do something like git pull origin main |
|
@rhatdan Whenever I squash only what I added into 1 commit, I get the 884 changes and whenever I rebase, I get back 7 commits... And if I follow instructions in DCO from the line: I will get back to 7 commits and 13 changes. I seem to be going in a loop. |
|
I recommend |
|
Do |
|
Almost there. Now cleanup your commit message. removing the excess text. git commit -a --amend -s Should do it, and then the DCO should pass. |
cmd/podman/containers/logs.go
Outdated
There was a problem hiding this comment.
nit
| podman container logs --color --names ctrID1 ctrID2 | |
| podman container logs --color --names ctrID1 ctrID2 |
|
For some reason, a test in I used this command to recreate the error: GOPATH=~/go go test -v test/e2e/libpod_suite_test.go test/e2e/common_test.go test/e2e/config.go test/e2e/config_amd64.go test/e2e/run_test.goWould anyone know what could possibly be causing this? |
|
You need to rebase your PR. git pull origin main |
|
@kbaran1998 you're still fighting DCO issues, looks like two of your commits are unsigned. Please see: https://github.com/containers/podman/pull/13490/checks?check_run_id=5727855035 |
Signed-off-by: Krzysztof Baran <krysbaran@gmail.com> Signed-off-by: gcalin <caling@protonmail.com>
|
LGTM |
|
Thanks @kbaran1998 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kbaran1998, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Created an option to colourise
pod logswith an option--color. You can recreate with the following steps:Closes #13266