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

feat(crowtty): more readable tracing messages #279

Merged
merged 2 commits into from
Sep 16, 2023
Merged

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Sep 16, 2023

Depends on #278.

This commit makes a very small change to how the crowtty traceproto
output formats an event's message field. The message is now printed
first, and (when the terminal supports ANSI formatting escapes), it's
bolded, so that it stands out a bit from other fields and metadata.
Also, I've changed crowtty so that the message field is always printed
first, rather than ordering it alphabetically by field name. This should
improve the consistency of log lines and hopefully make them a bit
easier to read.

For example:

image

This commit makes a very small change to how the crowtty traceproto
output formats an event's `message` field. The message is now printed
without the `message=` prefix, shortening the log line, and it's now
bolded so the message stands out from the other fields and metadata. I
think this is a little more readable.
Copy link
Contributor

@jamesmunns jamesmunns left a comment

Choose a reason for hiding this comment

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

Always down for PRs that bring joy

@hawkw hawkw merged commit 6a33c34 into main Sep 16, 2023
10 checks passed
@hawkw hawkw deleted the eliza/crowtty-prettify branch September 16, 2023 20:47
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.

None yet

2 participants