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

chore: rotate logs after exceeding 20mb #714

Merged
merged 1 commit into from Sep 6, 2023

Conversation

jacderida
Copy link
Contributor

@jacderida jacderida commented Sep 6, 2023

The previous rotation strategy was using the number of lines, which was set to 5000.

Users recently noticed this limitation was producing lots of logs, so we've changed the strategy to be based on the size of the log in bytes.

Description

Summary generated by Reviewpad on 06 Sep 23 19:14 UTC

This pull request updates the log rotation strategy in the sn_logging library. Previously, logs were rotated based on the number of lines, but this caused an excessive number of logs. The new strategy rotates logs based on the size of the log in bytes. This change is implemented in the appender.rs and lib.rs files. The maximum log size is set to 20mb, the maximum number of uncompressed log files is set to 100, and the maximum number of log files is set to 1000.

@reviewpad reviewpad bot requested a review from joshuef September 6, 2023 19:14
@reviewpad reviewpad bot added Small Pull request is small waiting-for-review labels Sep 6, 2023
The previous rotation strategy was using the number of lines, which was set to 5000.

Users recently noticed this limitation was producing lots of logs, so we've changed the strategy to
be based on the size of the log in bytes.
Copy link
Member

@RolandSherwin RolandSherwin left a comment

Choose a reason for hiding this comment

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

PR looks good to me!

@RolandSherwin RolandSherwin added this pull request to the merge queue Sep 6, 2023
Merged via the queue into maidsafe:main with commit 4c9d9fd Sep 6, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants