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

Avoid closing stdout when the accesslog handler is closed #5459

Merged
merged 5 commits into from Sep 23, 2019
Merged

Avoid closing stdout when the accesslog handler is closed #5459

merged 5 commits into from Sep 23, 2019

Conversation

nrwiersma
Copy link
Contributor

@nrwiersma nrwiersma commented Sep 23, 2019

What does this PR do?

When StdOut is used as the Access Log handlers file, on close or rotation, StdOut can and does get closed.

Motivation

Closing StdOut is almost never a good.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Ludovic Fernandez ldez@users.noreply.github.com
Co-authored-by: jlevesy julien.levesy@containo.us

@traefiker traefiker added this to the 1.7 milestone Sep 23, 2019
@nmengin nmengin changed the title Stop closing StdOut Avoid closing stout when the accesslog handler is closed Sep 23, 2019
@ldez ldez changed the title Avoid closing stout when the accesslog handler is closed Avoid closing stdout when the accesslog handler is closed Sep 23, 2019
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

@traefiker traefiker merged commit 640eb62 into traefik:v1.7 Sep 23, 2019
@nrwiersma nrwiersma deleted the avoid-closing-stdout branch September 23, 2019 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants