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

bugfix: remove max-size >=2 condition #2958

Closed
wants to merge 1 commit into from

Conversation

ZYecho
Copy link
Contributor

@ZYecho ZYecho commented Aug 8, 2019

Signed-off-by: zhangyue zy675793960@yeah.net

Ⅰ. Describe what this PR did

no need this condition, because we can still do logrotate when max-file = 1

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

NONE

Ⅳ. Describe how to verify it

step1. launch pouchd with max-size and max-file flags

pouchd --log-opt max-size=10k
step2. run a container which could write stdout to its log

pouch run docker.io/library/busybox:latest top
step3. check container log is rotated

Ⅴ. Special notes for reviews

none

Signed-off-by: zhangyue <zy675793960@yeah.net>
@codecov
Copy link

codecov bot commented Aug 8, 2019

Codecov Report

❗ No coverage uploaded for pull request head (fix-log-rotate@b3224e5). Click here to learn what that means.
The diff coverage is n/a.

@pouchrobot pouchrobot added kind/bug This is bug report for project size/XS labels Aug 8, 2019
@fuweid
Copy link
Contributor

fuweid commented Oct 11, 2019

@ZYecho could you please repush it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is bug report for project size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants