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

Do not log twice if logfile is the same as stdout redirection #691

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

ccoors
Copy link
Contributor

@ccoors ccoors commented Feb 16, 2021

This prevents duplicate log entries if stdlog is redirected to the same file as the actual logfile.

Implementation of Tools.ARE_SAME_FILES is similar to https://github.com/python/cpython/blob/master/Lib/genericpath.py#L85

@Hypfer
Copy link
Owner

Hypfer commented Feb 16, 2021

To my surprise, this doesn't break development on windows since the try/catch also catches /proc not existing at all.

Neat

@Hypfer Hypfer merged commit 2bd4c82 into Hypfer:master Feb 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants