Fix: Reconnecting spamming

This commit is contained in:
Core447 2024-07-20 19:54:07 +02:00
parent a8b296a26f
commit bf3bf6a070
No known key found for this signature in database
GPG Key ID: 5B97C0BD62F98516
1 changed files with 9 additions and 0 deletions

View File

@ -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