We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c07efc commit 945956aCopy full SHA for 945956a
src/lib/formatters/log.ts
@@ -349,7 +349,10 @@ export function formatTraceLogs(options: FormatTraceLogsOptions): string {
349
350
if (asJson) {
351
const reversed = [...logs].reverse();
352
- return `${formatJson(fields ? filterFields(reversed, fields) : reversed)}\n`;
+ const data = fields
353
+ ? reversed.map((entry) => filterFields(entry, fields))
354
+ : reversed;
355
+ return `${formatJson(data)}\n`;
356
}
357
358
if (logs.length === 0) {
0 commit comments