1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 16:36:06 +00:00
webvirtcloud/webvirtcloud
catborise db1db4cb32 fix(logging): the web workers rotate the panel's log without losing lines
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
2026-11-10 13:48:14 +03:00
..
tests fix(logging): the web workers rotate the panel's log without losing lines 2026-11-10 13:48:14 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
bootstrap_icons.py chore(deps): the icons come from the committed cache, not django-bootstrap-icons 2026-11-05 12:37:51 +03:00
common_tags.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
gunicorn_worker.py fix(webvirtcloud): a worker past its request timeout exits even if its log blocks 2026-11-03 07:11:03 +03:00
log_context.py fix(logs): a job's rows carry the address it was asked from, and a cancel its own user 2026-11-07 14:36:44 +03:00
middleware.py fix(instances): an open VM page follows its VM's removal on the host 2026-11-10 13:19:39 +03:00
serializers.py fix(api): an error's status says what it is, and its body is always {"detail"} 2026-11-07 13:29:46 +03:00
settings-dev.py chore(settings): settings-dev without obsolete keys 2026-11-06 11:01:51 +03:00
settings.py.template fix(logging): the web workers rotate the panel's log without losing lines 2026-11-10 13:48:14 +03:00
test_runner.py fix(tests): the parallel test runner works on Python 3.14; CI tests 3.14 2026-11-07 21:47:09 +03:00
urls-api.py feat(operations): jobs API 2026-10-14 23:27:57 +03:00
urls.py feat(settings): WEBVIRTCLOUD_DEBUG=1 turns on Django's debug mode 2026-11-09 09:48:34 +03:00
wsgi.py fix: stop ignoring SIGCHLD process-wide 2026-10-04 13:40:53 +03:00