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."""
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")
"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."""
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,