Commit be4d519
committed
fix(utils): correct logWrapper format string handling
The logWrapper was prepending trace/job IDs as a separate argument instead
of concatenating them with the format string. This caused format placeholders
(%s, %d, etc.) to not be interpolated, appearing literally in logs.
Changes:
- Merge marker string with format string (first arg) instead of prepending as separate arg
- Add tests to verify format string placeholder interpolation works correctly
Before: log.info('[traceId=123]', 'Found %d items', 42)
After: log.info('[traceId=123] Found %d items', 42)
Fixes format string interpolation in all log levels (info, error, debug, warn, etc.)
Related: #11541 parent 41d94f2 commit be4d519
File tree
2 files changed
+34
-1
lines changed2 files changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
237 | 264 | | |
0 commit comments