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

bugfix: make logrus detect whether output with color #1202

Merged
merged 1 commit into from Apr 25, 2018

Conversation

yyb196
Copy link
Collaborator

@yyb196 yyb196 commented Apr 25, 2018

Signed-off-by: Frank Yang yyb196@gmail.com

Ⅰ. Describe what this PR did

make logrus detect whether output with color instead of always output with color.

when redirect pouchd output a file, avoid outputting message like ESC[34mINFOESC[0m to the file.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: Frank Yang <yyb196@gmail.com>
@pouchrobot pouchrobot added areas/log kind/bug This is bug report for project size/XS labels Apr 25, 2018
@allencloud allencloud changed the title [bugfix] make logrus detect whether output with color bugfix: make logrus detect whether output with color Apr 25, 2018
@allencloud
Copy link
Collaborator

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Apr 25, 2018
@allencloud allencloud merged commit e95fc86 into AliyunContainerService:master Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/log kind/bug This is bug report for project LGTM one maintainer or community participant agrees to merge the pull reuqest. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants