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

Improve column alignment in test logs. #578

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

ghemawat
Copy link
Collaborator

We would previously create a NewPrettyPrinter per log entry to disable dimming, which had the unfortunate side-effect of not aligining component and file:line columns. We now reuse a NewPrettyPrinter, but explicitly disable dimming inside it and start it off with wide columns,

@ghemawat ghemawat requested a review from spetrovic77 August 31, 2023 21:47
Multi tests would previously create a NewPrettyPrinter per log entry
to disable dimming and dynamic column widening since that caused
problems when multiple processes, each with their own pretty printer,
were sharing the same output.

These days all processes in multi tests forward their log entries to
the main process which has a single logger. Therefore we can reuse
the same pretty printer, which gives us proper dimming and column
widening.
@ghemawat ghemawat merged commit 155582e into ServiceWeaver:main Aug 31, 2023
@ghemawat ghemawat deleted the testlogger branch August 31, 2023 22:37
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.

2 participants