-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
truncate single file upon creation #1143
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! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1143 +/- ##
==========================================
+ Coverage 62.14% 62.29% +0.15%
==========================================
Files 19 19
Lines 2327 2331 +4
Branches 846 834 -12
==========================================
+ Hits 1446 1452 +6
Misses 599 599
+ Partials 282 280 -2
|
Hey @sergiud, sorry for the delay. |
7766a90
to
d693e22
Compare
Thanks! |
A small change that writes logs to beginning of the file when its size exceeds
max_log_size
constraint.Fixes: #1089