-
Notifications
You must be signed in to change notification settings - Fork 122
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
Log rotation or truncation for spv.log #1733
Comments
@fairglu: Thanks for opening an issue, it is currently awaiting triage. The triage/accepted label can be added by foundation members by writing /triage accepted in a comment. DetailsI am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository. |
I believe you can simply delete the You can also set up some batch scripts to automatically delete the file once it hits a certain size. |
Thanks, yes I'm already doing that for the debug.log, but had not noticed the spv.log was growing that much as well. I just thought it could be a nice "quality of life automation" to have some log rotation built into the the wallet, text logs beyond a few hundred MB are quite unwieldy anyway. |
If you are on Linux use the standard logrotate configuration like: cat /etc/logrotate.d/opn01 /opt/defichain/opn01/*.log { This works here very well. It rotates any log file in the path larger than 5 mb, keeps 5 compressed copies. |
What would you like to be added:
A built-in log rotation or truncation for spv.log
Why is this needed:
Just noticed my spv.log (which I had never manually purged, and had been growing for months) was 9 GB in size, as large as the "blocks" directory which contains the defi blockchain
The text was updated successfully, but these errors were encountered: