mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +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 |
||
|---|---|---|
| .. | ||
| layouts | ||
| migrations | ||
| templates | ||
| tests | ||
| __init__.py | ||
| models.py | ||
| novncd | ||
| refusals.py | ||
| socketiod | ||
| sshtunnels.py | ||
| tokens.py | ||
| views.py | ||