Skip to content

Commit

Permalink
Change logger used for provider (music-assistant#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
khers authored Aug 18, 2024
1 parent a4b41d1 commit b95310a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -325,7 +324,7 @@ def _parse_album(self, sonic_album: SonicAlbum, sonic_info: SonicAlbumInfo = Non
)
)
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}'."
)
Expand Down Expand Up @@ -428,7 +427,7 @@ def _parse_track(self, sonic_song: SonicSong) -> Track:
},
)
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}'."
)
Expand Down

0 comments on commit b95310a

Please sign in to comment.