From 74bab092921facf60391915e3470cf636f1916bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 8 Feb 2024 22:15:08 +0100 Subject: [PATCH] don't do automatic activation of xmpplogger --- appslib/xmpplogger.py | 4 +++- list_builder.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/appslib/xmpplogger.py b/appslib/xmpplogger.py index 69c4814..c13faef 100644 --- a/appslib/xmpplogger.py +++ b/appslib/xmpplogger.py @@ -30,4 +30,6 @@ class XmppLogHandler(logging.Handler): logging.getLogger().handlers.append(handler) -XmppLogHandler.add(logging.ERROR) +def enable(): + """Enables the XmppLogHandler""" + XmppLogHandler.add(logging.ERROR) diff --git a/list_builder.py b/list_builder.py index 44476f8..586d49b 100755 --- a/list_builder.py +++ b/list_builder.py @@ -249,6 +249,7 @@ def build_app_dict(app, infos): def main() -> None: + appslib.xmpplogger.enable() apps_cache_update_all(get_catalog(), parallel=50) catalog = build_base_catalog()