From b65593060cf033e6f3c83159abbb9753ddc79f8b Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 9 Mar 2023 18:02:53 +0100 Subject: [PATCH] silence smb logger --- music_assistant/server/providers/filesystem_smb/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/music_assistant/server/providers/filesystem_smb/__init__.py b/music_assistant/server/providers/filesystem_smb/__init__.py index 3a7c182c..581f3fb1 100644 --- a/music_assistant/server/providers/filesystem_smb/__init__.py +++ b/music_assistant/server/providers/filesystem_smb/__init__.py @@ -1,6 +1,7 @@ """SMB filesystem provider for Music Assistant.""" import contextvars +import logging import os from collections.abc import AsyncGenerator from contextlib import asynccontextmanager @@ -49,6 +50,8 @@ class SMBFileSystemProvider(FileSystemProviderBase): async def setup(self) -> None: """Handle async initialization of the provider.""" + # silence SMB.SMBConnection logger a bit + logging.getLogger("SMB.SMBConnection").setLevel("INFO") # extract params from path if self.config.get_value(CONF_PATH).startswith("\\\\"): path_parts = self.config.get_value(CONF_PATH)[2:].split("\\", 2) -- 2.34.1