Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] Docker-compose logs --no-color prints colors with ocis logs #871

Closed
jnweiger opened this issue Nov 17, 2020 · 2 comments · Fixed by #3935
Closed

[QA] Docker-compose logs --no-color prints colors with ocis logs #871

jnweiger opened this issue Nov 17, 2020 · 2 comments · Fixed by #3935
Labels
Category:Technical Technical ehancements Priority:p4-low Low priority Type:Bug

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Nov 17, 2020

docker-compose -f $compose_yml logs --no-color -f --tail=10
Shows the docker logs without colors. Mostly, except ocis logs:

image

Expected behaviour: all components appear in black / white

@jnweiger
Copy link
Contributor Author

Workaround:

$ cat ~/bin/monochrome 
#! /bin/sh
# remove ansi color sequences like eg \033[0m and \033[36m and friends.
#
sed -e s/[[0-9]*m//g "$@"

Use as e.g.
docker-compose logs ... | monochrome

@settings settings bot removed the bug label Jan 12, 2021
@refs refs changed the title [QA] docker-compose logs --no-color prints colors with ocis logs [QA] Docker-compose logs --no-color prints colors with ocis logs Jan 13, 2021
@refs refs added the Category:Technical Technical ehancements label Jan 13, 2021
@settings settings bot removed the p3-medium label Apr 7, 2021
@micbar
Copy link
Contributor

micbar commented May 10, 2022

@wkloucek I think this is still valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Technical Technical ehancements Priority:p4-low Low priority Type:Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants