Skip to content

Commit

Permalink
lower some log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Aug 21, 2024
1 parent b07aa81 commit e460d72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion music_assistant/server/helpers/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(
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."""
Expand Down
9 changes: 6 additions & 3 deletions music_assistant/server/helpers/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
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")

Expand Down Expand Up @@ -113,7 +113,9 @@ async def start(self) -> None:
"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."""
Expand Down Expand Up @@ -243,7 +245,8 @@ async def close(self, send_signal: bool = False) -> None:
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,
Expand Down

0 comments on commit e460d72

Please sign in to comment.