Skip to content

revert: fix(logger): truncate log over 5000 characters long (#16581) #17729

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

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

Henry-Hong
Copy link
Contributor

@Henry-Hong Henry-Hong commented Jul 21, 2024

Description

Thanks to alexeyraspopov/picocolors#64, no longer needed to truncate logs over >5K characters long.

It was kind of tricky to add some tests, so I made a related test for ‘picocolors’, which was the root problem. The following is the related PR:

Copy link

stackblitz bot commented Jul 21, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev merged commit f4f488f into vitejs:main Jul 22, 2024
12 checks passed
@developit
Copy link
Contributor

yay! This fixes an issue we have had where the calculation of 5000 lines is wrong because it does not account for escape sequences (which can cause the number of \n characters to be completely independent of the number of successive lines written to the screen).

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.

Too long error messages get cropped
4 participants