Skip to content
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

Always append zinit logs to the end of logfile #547

Merged
merged 2 commits into from
Feb 25, 2020
Merged

Conversation

maxux
Copy link
Contributor

@maxux maxux commented Feb 25, 2020

When using > to redirect logs, target file offset will be kept even if
file is truncated. This result by incoherent/invalid log filesize.

Using >> will always append to the end of the file and if logfile is
truncated, size will be reset.

When using > to redirect logs, target file offset will be kept even if
file is truncated. This result by incoherent/invalid log filesize.

Using >> will always append to the end of the file and if logfile is
truncated, size will be reset.
@codecov
Copy link

codecov bot commented Feb 25, 2020

Codecov Report

Merging #547 into master will increase coverage by 0.01%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #547      +/-   ##
==========================================
+ Coverage   36.26%   36.27%   +0.01%     
==========================================
  Files          75       75              
  Lines        5066     5067       +1     
==========================================
+ Hits         1837     1838       +1     
  Misses       2963     2963              
  Partials      266      266
Impacted Files Coverage Δ
pkg/provision/container.go 60.41% <33.33%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fbd23ca...fcf929d. Read the comment docs.

@delandtj
Copy link
Contributor

Good catch !

Copy link
Contributor

@delandtj delandtj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES!

@zaibon zaibon merged commit dd31f59 into master Feb 25, 2020
@muhamadazmy muhamadazmy deleted the master-logfix branch February 25, 2020 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants