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

stream's StandardErrorHandler shouldn't be a property #106

Open
RobinFrcd opened this issue Aug 19, 2021 · 0 comments
Open

stream's StandardErrorHandler shouldn't be a property #106

RobinFrcd opened this issue Aug 19, 2021 · 0 comments

Comments

@RobinFrcd
Copy link

Hello,
Since Python 3.7 streams can be managed with StreamHandler.setStream.

Somewhere in my code, I'm setting a stream which raises the following error:

  File "/Users/rfourcade/.pyenv/versions/3.7.9/lib/python3.7/logging/__init__.py", line 1050, in setStream
    self.stream = stream
AttributeError: can't set attribute

Would it be possible to remove this property and just make the sys.stderr the default stream value ?

Thanks

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

No branches or pull requests

1 participant