summaryrefslogtreecommitdiff
path: root/cmd/caddy
diff options
context:
space:
mode:
authorJeremy Lin <jeremy.lin@gmail.com>2020-05-07 12:06:00 -0700
committerGitHub <noreply@github.com>2020-05-07 13:06:00 -0600
commitbf8c3c25c1631360133137e8e9d30ca158c6cb73 (patch)
treef59743c73a2e1d49f2d360f7dfaf9e131e2f9e48 /cmd/caddy
parentc8da8ca6739f34b8302c377de66605724512a994 (diff)
log: improve rounding logic for log rolling directives (#3367)
* For `roll_size` and `roll_keep_for` directives, round up instead of down. For example, if a user wants to be able to look back on 36 hours of logs, but you must round to a 24-hour multiple, then it's better to round up to 48 hours (which includes the desired 36 hours) instead of down to 24 hours. * `roll_size` had an off-by-one error that caused the size to be as much as 1 MB larger than requested. For example, requests of `1MB` and `1.1MB` both became 2 MB. Now `1MB` means 1 MB, and `1.1MB` is rounded up to 2 MB.
Diffstat (limited to 'cmd/caddy')
0 files changed, 0 insertions, 0 deletions