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()