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

Naively truncate log messages #117

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from
Open

Conversation

mucha55
Copy link
Contributor

@mucha55 mucha55 commented Nov 12, 2020

This branch may not be merged in as-is, it's more to provide a dev- version on packagist for ListingService to see if this truncation resolves logging problems

@mucha55 mucha55 self-assigned this Nov 12, 2020
@mucha55
Copy link
Contributor Author

mucha55 commented Nov 12, 2020

This is probably fine for pretty-printed output, but for single-line message, it may not be aggressive enough. I just pulled a typical error log line (with a short message) and it comes in at ~7K characters (most of it from the long error trace), leaving ~9K characters to work with, which would be halved to 4500 characters if userspace does something like ->error($throwable->getMessage(), 'exception' => $throwable), which is not uncommon

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.

2 participants