diff --git a/src/poetry/console/logging/io_formatter.py b/src/poetry/console/logging/io_formatter.py index e81dace0423..3f2242d87ff 100644 --- a/src/poetry/console/logging/io_formatter.py +++ b/src/poetry/console/logging/io_formatter.py @@ -4,6 +4,7 @@ from typing import TYPE_CHECKING +from poetry.console.logging.filters import POETRY_FILTER from poetry.console.logging.formatters import FORMATTERS @@ -32,4 +33,8 @@ def format(self, record: LogRecord) -> str: record.msg = msg + if not POETRY_FILTER.filter(record): + # prefix third-party packages with name for easier debugging + record.msg = f"[{record.name}] {record.msg}" + return super().format(record)