You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can structlog be used with pythonw to only log in file ?
Importing structlog fails when pythonw is used to run the python code because sys.stdout is None.
The error is raised in file structlog/_config.py when sys.stdout.isatty() is called.
Can structlog be used with pythonw to only log in file ?
Importing structlog fails when pythonw is used to run the python code because
sys.stdout
isNone
.The error is raised in file
structlog/_config.py
whensys.stdout.isatty()
is called.Here is a simple test that reveals the issue.
https://stackoverflow.com/q/67315429/15792213
The text was updated successfully, but these errors were encountered: