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

liteclient: Truncate log of update complete event #356

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

mike-sul
Copy link
Contributor

Truncate a description of the update complete event if the completion is not successful and it exceeds the maximum allowed size (2048). The truncation is done by erasing the description middle part, so a user can see the beginning of the app starting log and the end of it which is supposed to contain a reason of failure.

Truncate a description of the update complete event if the completion is
not successful and it exceeds the maximum allowed size (2048).
The truncation is done by erasing the description middle part, so a user
can see the beginning of the app starting log and the end of it which is
supposed to contain a reason of failure.

Signed-off-by: Mike Sul <[email protected]>
@mike-sul mike-sul requested a review from detsch August 28, 2024 11:10
If an update event description is truncated because it exceeds the
maximum allowed size then append `TRUNCATED` to its end so a user is
aware that the event description is truncated.

Signed-off-by: Mike Sul <[email protected]>
Copy link
Member

@detsch detsch left a comment

Choose a reason for hiding this comment

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

LGTM

@mike-sul mike-sul merged commit 1c4eb8d into master Aug 28, 2024
4 checks passed
@mike-sul mike-sul deleted the send-tail-of-error branch August 28, 2024 14:22
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