Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
896b5805
Commit
896b5805
authored
Apr 26, 2022
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefix third-party package logs with name
parent
ca5695b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/poetry/console/logging/io_formatter.py
+5
-0
No files found.
src/poetry/console/logging/io_formatter.py
View file @
896b5805
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment