-
Notifications
You must be signed in to change notification settings - Fork 13
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
aiologger closes sys.stdout #4
Comments
Any chance you found a solution? |
Any updates on this issue? |
Hello there! I think I've got a semi-reasonable workaround for anyone that's curious. Rather than directly passing
Full credit to this StackOverflow answer for the idea: https://stackoverflow.com/a/40845164. Hope this helps! Quick Edit: This workaround assumes you won't be attempting to re-use the same instance of the Hander/Logger later. I'd recommend creating a logger factory if you plan on passing the same logger between different calls to |
Why does
aiologger
closesys.stdout
or any handler it doesn'topen()
?results in:
The text was updated successfully, but these errors were encountered: