-
Notifications
You must be signed in to change notification settings - Fork 303
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
Logging is broken in production on Windows #5057
Comments
I don't have a Windows dev environment so I'm likely the wrong person to assign. However, this is a very critical bug troubleshooting windows deployment issues is made extremely difficult without proper logging. |
I assigned you as you're our Django/logging expert; not sure who might be better to take it on (only people with Windows are frontend devs and interns), but feel free to attempt a re-assign. I did my initial debugging for this using a Virtualbox from: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/linux/ |
Usual work-around (modify the paths in case you don't have Python installed in
|
Hi @benjaoming It's safe if we use the |
@mrpau-richard the solution we're looking for is to get the actual Python logging work so that logging is completely identical on all systems. The above is just a work-around, not a fix :) |
Fixed by @mrpau-richard in #5364 |
Summary
Logging to file was not working on Windows, as seen in #5030 -- seems likely to be multi-threaded concurrency issues (possibly
StreamHandler
being closed by one thread while still being used by another thread).A temporary workaround to avoid bigger problems was introduced by #5056, but it simply disables the
StreamHandler
output on Windows, thereby disabling logging.We should remove the workaround introduced in #5056, and then sort out the original problem to get logging working properly again.
Branch or installer method
The text was updated successfully, but these errors were encountered: