lower some log levels
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 21 Aug 2024 14:37:14 +0000 (16:37 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 21 Aug 2024 14:37:14 +0000 (16:37 +0200)
music_assistant/server/helpers/audio.py
music_assistant/server/helpers/process.py

index 4eebff3c5c17e33c2051bb46da6d2f1fae53fbe7..91bbee057f656e54ed5be1e902e2039fe9009dbb 100644 (file)
@@ -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."""
index b64951867aaf5e9434b6bee6abaffc5b6e4da648..6c243acb7a020cb6bdd912b813889360b9164b54 100644 (file)
@@ -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,