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
how to prevent logging with color? #941
Comments
Did you check our docs? There is a no-color option. |
I did, must have missed it. Why not automatically enable color based on whether stderr is a tty or not? |
All good! Apologies for terse reply.
Good question, seems like a good idea! Things get a bit complicated with tty support cross-platform, but we could probably do that for linux/mac. |
We do! Lines 51 to 63 in 6f4f790
buildkite-agent start --config .buildkite-agent.cfg &> no-color.log I looked at the output in Sounds like maybe the thing on your end @nhooyr is reporting itself as a TTY. As far as the agent is concerned, I think it's doing the right thing! |
Interesting. Thanks for looking into this for me. |
Ah, kubernetes runs each app with a TTY so that when you run I guess that does make sense. Unfortunate with Stackdriver though, I think I'll file an issue with them to remove the escape codes. |
Don't want colored logs for the agent on GKE as the logs go to stackdriver and you see the raw escape codes everywhere.
The text was updated successfully, but these errors were encountered: