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 for layout issues with log messages #2933

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

wolfeidau
Copy link
Contributor

Description

When the group expansion characters are printed ^^^ +++ whilst also using ansi colours, our log rendering in the UI does not expand the group, so the message is hidden.

Context

Changes in #2805 a while back adjusted the structure of the messages slightly when using ansi color, this resulted in some formatting issues.

With @tessereth expert guidance we found the issue and added a test to validate it.

Changes

Just moved the ^^^ +++ sequence out of the ansi formatting.

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

Copy link

@jradtilbrook jradtilbrook left a comment

Choose a reason for hiding this comment

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

I was hoping/expecting it might be something simple like this 🙏

@wolfeidau wolfeidau requested a review from a team August 15, 2024 22:18
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM

@wolfeidau wolfeidau merged commit 5d69f8b into main Aug 15, 2024
1 check passed
@wolfeidau wolfeidau deleted the fix_logger_fmt_functions branch August 15, 2024 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants