-
Notifications
You must be signed in to change notification settings - Fork 289
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
config: Add logsize config option. #2711
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested fine, but needs an update to sampleconfig.go
to list the new option.
yeah, i had mentioned that to @davecgh in another chat. there's already no option for the logdir, so i wasn't sure if we cared to include that and/or this. probably makes the most sense to hit them both up in a later PR if we do want them. |
Is it really worth adding the extra code to support handling this as a string? Especially considering all of that code is duplicated across dcrd and dcrwallet? I added this same functionality in decred/vspd#249 and just made the param an integer which is always measured in MB. |
When people want their logs to grow to the gigabytes, yes... |
If somebody wants 2GB they can simply set |
2048, actually. |
The logsize option enables configuration of the currently-hardcoded value of 10MiB log files before they are rotated and compressed. The default remains 10MiB. This is a string option and requires using a suffix such as K, M, or G to specify the units as kibibytes, mebibytes, or gibibytes.
The logsize option enables configuration of the currently-hardcoded
value of 10MB log files before they are rotated and compressed. The
default remains 10MB.
This is a string option and requires using a suffix such as KB, MB, or
GB to specify the units as kibibytes, mebibytes, or gibibytes.