-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
truncate single file upon creation #1143
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Hello @sergiud, I hope you had a pleasant vacation. PTAL! |
Thanks for the PR and apologies for the late reply. I'm not sure I understand the change. The log output file is truncated unconditionally; no check against |
There are two cases: Else, it's implied that we are writing to a single log file, and in this case, whenever we are attempting to create a new file, it's because:
When |
I see, thanks. Could you please extend the comment to mention that the log is recreated in the |
Hey @sergiud! |
A small change that writes logs to beginning of the file when its size exceeds
max_log_size
constraint.Fixes: #1089