Commit 896b5805 by Arun Babu Neelicattu

prefix third-party package logs with name

parent ca5695b8
...@@ -4,6 +4,7 @@ import logging ...@@ -4,6 +4,7 @@ import logging
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from poetry.console.logging.filters import POETRY_FILTER
from poetry.console.logging.formatters import FORMATTERS from poetry.console.logging.formatters import FORMATTERS
...@@ -32,4 +33,8 @@ class IOFormatter(logging.Formatter): ...@@ -32,4 +33,8 @@ class IOFormatter(logging.Formatter):
record.msg = msg 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) return super().format(record)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment