Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/cli/gateway_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ func parseGatewayLogs(logDir string, verbose bool) (*GatewayMetrics, error) {
}

scanner := bufio.NewScanner(file)
buf := make([]byte, maxScannerBufferSize)
scanner.Buffer(buf, maxScannerBufferSize)
lineNum := 0

for scanner.Scan() {
Expand Down Expand Up @@ -775,6 +777,8 @@ func extractMCPToolUsageData(logDir string, verbose bool) (*MCPToolUsageData, er
defer file.Close()

scanner := bufio.NewScanner(file)
buf := make([]byte, maxScannerBufferSize)
scanner.Buffer(buf, maxScannerBufferSize)
for scanner.Scan() {
line := strings.TrimSpace(scanner.Text())
if line == "" {
Expand Down
Loading