mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
Every gunicorn worker had its own RotatingFileHandler on the panel's log. Once one rotated it, the others went on writing into the renamed file and rotated again in turn: the log then held the lines of one worker, and the others' went into the old files and were deleted with them. The handler is now concurrent-log-handler's, which rotates under a lock file and reopens the log after another process rotated it. That handler keeps no file open, so socketiod's copy of its stderr can be fd 3, the number a serial console worker logs to: dup2 onto itself kept it close-on-exec and the worker failed to start. It is made inheritable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| bootstrap_icons.py | ||
| common_tags.py | ||
| gunicorn_worker.py | ||
| log_context.py | ||
| middleware.py | ||
| serializers.py | ||
| settings-dev.py | ||
| settings.py.template | ||
| test_runner.py | ||
| urls-api.py | ||
| urls.py | ||
| wsgi.py | ||