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

fix(cmd/artifact/follow): colored output despite --disable-styling #324

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

MickaelFontes
Copy link
Contributor

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind flaky-test

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area library

/area cli

/area tests

/area examples

What this PR does / why we need it:

Output of the artifact follow command still contains colors even when the --disable-styling flag is present.
This PR removes the colors but still maintains "styling", which consists here in prepending each line with the log level and the artifact path.

Which issue(s) this PR fixes:

Fixes #295

Special notes for your reviewer:

This is a simple fix for the color issue I observed and encountered, but the logic problem of the --disable-styling flag not respected remains.
I don't know if it is a problem or not.

Copy link
Member

@alacuku alacuku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MickaelFontes, thank you!

/LGTM

@poiana
Copy link
Contributor

poiana commented Sep 15, 2023

LGTM label has been added.

Git tree hash: 715cefb303e057d38dc00ace4ef8555b4329b9bc

@poiana
Copy link
Contributor

poiana commented Sep 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alacuku, leogr, MickaelFontes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 55ed9ef into falcosecurity:main Sep 15, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable styling does not affect follow command
4 participants