From bf3bf6a0709f0c43a3f2e57108d4dbad4535ac06 Mon Sep 17 00:00:00 2001 From: Core447 <100139110+Core447@users.noreply.github.com> Date: Sat, 20 Jul 2024 19:54:07 +0200 Subject: [PATCH] Fix: Reconnecting spamming --- backend/backend.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/backend.py b/backend/backend.py index 9da031f..3102e97 100644 --- a/backend/backend.py +++ b/backend/backend.py @@ -1,3 +1,12 @@ +import logging +LOG = logging.getLogger(__name__) +# Set the logger level to ERROR +LOG.setLevel(logging.ERROR) + +# Otherwise the obswebsocket library will create a separate logger with a lower warning level spamming the console if OBS isn't running +logging.getLogger = lambda *args, **kwargs: LOG + + from streamcontroller_plugin_tools import BackendBase from OBSController import OBSController