Commit 7e826d6
committed
fix: Add package prefix to uv output
Most log output uses the package name as a prefix (via FromagerLogRecord)
so it is possible to tell which package is being processed when a message
is logged. This was not true when dumping the output of UV and other
external commands to the log, where the entire multi-line output was
logged in a single call.
This fix logs each line of output separately so the package name prefix
is applied to every line, making it much easier to identify which package
is being processed, especially when building multiple packages in parallel
or when reviewing logs.
Changes:
- Log command output line-by-line instead of as a single block
- Skip empty lines to keep logs cleaner
- Apply same pattern to both error and debug output
- Update mock test to provide stdout for proper testing
Fixes: #753
Co-authored-by: Claude <claude@anthropic.com>
Signed-off-by: Ioannis Angelakopoulos <iangelak@redhat.com>1 parent a098d3c commit 7e826d6
2 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
103 | 113 | | |
104 | 114 | | |
105 | 115 | | |
| |||
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
116 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
117 | 132 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments