From: Marcel van der Veldt Date: Wed, 21 Aug 2024 14:37:14 +0000 (+0200) Subject: lower some log levels X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=e460d720f7c5ab1a85e2a23b7bba50319f546e02;p=music-assistant-server.git lower some log levels --- diff --git a/music_assistant/server/helpers/audio.py b/music_assistant/server/helpers/audio.py index 4eebff3c..91bbee05 100644 --- a/music_assistant/server/helpers/audio.py +++ b/music_assistant/server/helpers/audio.py @@ -113,7 +113,7 @@ class FFMpeg(AsyncProcess): else: clean_args.append(arg) args_str = " ".join(clean_args) - self.logger.debug("starting ffmpeg with args: %s", args_str) + self.logger.log(VERBOSE_LOG_LEVEL, "starting ffmpeg with args: %s", args_str) async def start(self) -> None: """Perform Async init of process.""" diff --git a/music_assistant/server/helpers/process.py b/music_assistant/server/helpers/process.py index b6495186..6c243acb 100644 --- a/music_assistant/server/helpers/process.py +++ b/music_assistant/server/helpers/process.py @@ -19,7 +19,7 @@ from signal import SIGINT from types import TracebackType from typing import Self -from music_assistant.constants import MASS_LOGGER_NAME +from music_assistant.constants import MASS_LOGGER_NAME, VERBOSE_LOG_LEVEL LOGGER = logging.getLogger(f"{MASS_LOGGER_NAME}.helpers.process") @@ -113,7 +113,9 @@ class AsyncProcess: "permissive access rights. This will impact performance !" ) - self.logger.debug("Process %s started with PID %s", self.name, self.proc.pid) + self.logger.log( + VERBOSE_LOG_LEVEL, "Process %s started with PID %s", self.name, self.proc.pid + ) async def iter_chunked(self, n: int = DEFAULT_CHUNKSIZE) -> AsyncGenerator[bytes, None]: """Yield chunks of n size from the process stdout.""" @@ -243,7 +245,8 @@ class AsyncProcess: self.proc.pid, ) self.proc.terminate() - self.logger.debug( + self.logger.log( + VERBOSE_LOG_LEVEL, "Process %s with PID %s stopped with returncode %s", self.name, self.proc.pid,