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

Truncate hex strings in front logs #1679

Merged
merged 1 commit into from
Feb 4, 2021
Merged

Truncate hex strings in front logs #1679

merged 1 commit into from
Feb 4, 2021

Conversation

pm47
Copy link
Member

@pm47 pm47 commented Feb 1, 2021

Front-end logs can produce a huge amount of logs, with significant
duplication. In order to reduce the log volume, we truncate nodeId and
channelId in the MDC to only keep the first 8 hexadecimal characters.

Also, override a few toString because some channel-queries-related
case classes produce huge strings.

@pm47 pm47 requested a review from t-bast February 1, 2021 09:57
t-bast
t-bast previously approved these changes Feb 1, 2021
Front-end logs can produce a huge amount of logs, with significant
duplication. In order to reduce the log volume, we truncate `nodeId` and
`channelId` in the MDC to only keep the first 8 hexadecimal characters.

Also, override a few `toString` because some channel-queries-related
case classes produce huge strings.
@pm47 pm47 merged commit d053188 into master Feb 4, 2021
@pm47 pm47 deleted the truncate-debug-logs branch February 4, 2021 15:46
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