From d54c9a889679e21cb388f1ac08674ec988b9a122 Mon Sep 17 00:00:00 2001 From: "Bernd (Hermes)" Date: Tue, 16 Jun 2026 20:42:01 +0200 Subject: [PATCH] fix(archivar): add StreamHandler to adapter_integration logger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit setLevel(INFO) alone was not enough — without a handler and with propagate=True (default), logs were accepted by the root logger (level WARNING) but silently discarded since root has no handlers. Now matches adapter.py pattern: StreamHandler + propagate=False, so all submodule logs (classifier, router, room_index, booster) are visible via the shared parent logger. --- plugin/archivar/adapter_integration.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/archivar/adapter_integration.py b/plugin/archivar/adapter_integration.py index 3592062..f0056cb 100644 --- a/plugin/archivar/adapter_integration.py +++ b/plugin/archivar/adapter_integration.py @@ -93,6 +93,13 @@ except ImportError: logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) +# Ensure adapter_integration logs are visible by adding a stderr handler +if not logger.handlers: + _handler = logging.StreamHandler() + _handler.setLevel(logging.DEBUG) + _handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s %(name)s: %(message)s')) + logger.addHandler(_handler) + logger.propagate = False # Don't double-log to root # Callback-Signaturen SendCallback = Callable[[str, str], Awaitable[bool]]