Skip to content

Commit 76edd1c

Browse files
committed
fix: restore 100 default limit for log commands
Log commands (log list, trace logs) benefit from larger result sets since logs are high-volume and users need more context when debugging. Keep LIST_DEFAULT_LIMIT=25 as the standard but override to 100 for log-specific commands.
1 parent d0b8ce1 commit 76edd1c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/commands/log/list.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import {
3737
import type { StreamingTable } from "../../lib/formatters/text-table.js";
3838
import {
3939
buildListCommand,
40-
LIST_DEFAULT_LIMIT,
4140
LIST_MAX_LIMIT,
4241
LIST_MIN_LIMIT,
4342
TARGET_PATTERN_NOTE,
@@ -628,7 +627,7 @@ export const listCommand = buildListCommand(
628627
kind: "parsed",
629628
parse: parseLimit,
630629
brief: `Number of log entries (${LIST_MIN_LIMIT}-${LIST_MAX_LIMIT})`,
631-
default: String(LIST_DEFAULT_LIMIT),
630+
default: "100", // Logs are high-volume; 25 is too stingy for debugging
632631
},
633632
query: {
634633
kind: "parsed",

src/commands/trace/logs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
applyFreshFlag,
1717
FRESH_ALIASES,
1818
FRESH_FLAG,
19-
LIST_DEFAULT_LIMIT,
2019
LIST_MAX_LIMIT,
2120
} from "../../lib/list-command.js";
2221
import { withProgress } from "../../lib/polling.js";
@@ -136,7 +135,7 @@ export const logsCommand = buildCommand({
136135
kind: "parsed",
137136
parse: parseLimit,
138137
brief: `Number of log entries (<=${LIST_MAX_LIMIT})`,
139-
default: String(LIST_DEFAULT_LIMIT),
138+
default: "100", // Logs are high-volume; 25 is too stingy for debugging
140139
},
141140
query: {
142141
kind: "parsed",

0 commit comments

Comments
 (0)