From: Marcel van der Veldt Date: Fri, 19 Dec 2025 02:20:00 +0000 (+0100) Subject: Silence logging in plex provider X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=383d65363c79d574f056ae34b7d9e3f2ed37bd78;p=music-assistant-server.git Silence logging in plex provider --- diff --git a/music_assistant/providers/plex/__init__.py b/music_assistant/providers/plex/__init__.py index 68b877d5..4a423843 100644 --- a/music_assistant/providers/plex/__init__.py +++ b/music_assistant/providers/plex/__init__.py @@ -426,6 +426,10 @@ class PlexProvider(MusicProvider): """Set up the music provider by connecting to the server.""" # silence loggers logging.getLogger("plexapi").setLevel(self.logger.level + 10) + # silence urllib3 InsecureRequestWarning when certificate verification is disabled + # this is expected when connecting to Plex servers using their wildcard certificates + # that don't validate against LAN IP addresses + logging.getLogger("urllib3.connectionpool").setLevel(logging.ERROR) _, library_name = str(self.config.get_value(CONF_LIBRARY_ID)).split(" / ", 1) def connect() -> PlexServer: