Skip to content

Commit 06c7183

Browse files
committed
fix(CLI-BH): include trace logs missing timestamp_precise in follow mode
Logs without timestamp_precise were silently dropped in follow mode because the fallback `?? 0` always evaluates to `0 > lastTs` = false. Use explicit undefined check to always include such logs instead.
1 parent 3768252 commit 06c7183

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/log/list.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,11 @@ export const listCommand = buildListCommand("log", {
465465
statsPeriod,
466466
}),
467467
extractNew: (logs, lastTs) =>
468-
logs.filter((l) => (l.timestamp_precise ?? 0) > lastTs),
468+
logs.filter(
469+
(l) =>
470+
l.timestamp_precise === undefined ||
471+
l.timestamp_precise > lastTs
472+
),
469473
});
470474
} else {
471475
await executeTraceSingleFetch(stdout, org, flags.trace, flags);

0 commit comments

Comments
 (0)