Change logger used for provider (#1573)
authorEric Munson <eric@munsonfam.org>
Sun, 18 Aug 2024 16:47:23 +0000 (12:47 -0400)
committerGitHub <noreply@github.com>
Sun, 18 Aug 2024 16:47:23 +0000 (18:47 +0200)
music_assistant/server/providers/opensubsonic/sonic_provider.py

index a152b96300862c49a658307d6f78bf41b53e2b6d..a15df5d86f66fa42bbb32d8fec110b28140e5a46 100644 (file)
@@ -82,7 +82,6 @@ class OpenSonicProvider(MusicProvider):
 
     async def handle_async_init(self) -> None:
         """Set up the music provider and test the connection."""
-        logging.getLogger("libopensonic").setLevel(self.logger.level)
         port = self.config.get_value(CONF_PORT)
         if port is None:
             port = 443
@@ -325,7 +324,7 @@ class OpenSonicProvider(MusicProvider):
                 )
             )
         else:
-            logging.getLogger("libopensonic").info(
+            self.logger.info(
                 f"Unable to find an artist ID for album '{sonic_album.name}' with "
                 f"ID '{sonic_album.id}'."
             )
@@ -428,7 +427,7 @@ class OpenSonicProvider(MusicProvider):
                     },
                 )
             else:
-                logging.getLogger("libopensonic").info(
+                self.logger.info(
                     f"Unable to find artist ID for track '{sonic_song.title}' with "
                     f"ID '{sonic_song.id}'."
                 )