fix: harden events log — non-dict ring entries, off-loop journal reads, no default-config singleton

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-10 15:51:34 -04:00
co-authored by Claude Fable 5
parent 00fdbcaa5b
commit 92982c0ca7
4 changed files with 24 additions and 6 deletions
+2 -2
View File
@@ -142,8 +142,8 @@ def _journal_event(msg: dict):
if _loop is None or not _loop.is_running():
return
from . import journal as journal_mod
ej = journal_mod.get_events_journal()
if not ej.enabled:
ej = journal_mod._events_journal_instance
if ej is None or not ej.enabled:
return
try:
asyncio.run_coroutine_threadsafe(ej.log_event(msg), _loop)