Skip to content

Commit c48658c

Browse files
committed
Fix startup log wrapping
1 parent f6b9fce commit c48658c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

agent/agent.go

-2
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,7 @@ func (a *agent) trackScriptLogs(ctx context.Context, reader io.Reader) (chan str
778778
// coming in.
779779
logsFinished := make(chan struct{})
780780
err := a.trackConnGoroutine(func() {
781-
buffer := make([]byte, 0, 1<<20)
782781
scanner := bufio.NewScanner(reader)
783-
scanner.Buffer(buffer, 1<<20)
784782
for scanner.Scan() {
785783
queueLog(agentsdk.StartupLog{
786784
CreatedAt: database.Now(),

site/src/components/Logs/Logs.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ const useStyles = makeStyles<
9999
wordBreak: "break-all",
100100
color: theme.palette.text.primary,
101101
fontFamily: MONOSPACE_FONT_FAMILY,
102-
height: logLineHeight,
102+
height: ({ lineNumbers }) => (lineNumbers ? logLineHeight : "auto"),
103103
// Whitespace is significant in terminal output for alignment
104-
whiteSpace: "pre-line",
104+
whiteSpace: "pre",
105105
padding: theme.spacing(0, 3),
106106

107107
"&.error": {

0 commit comments

Comments
 (0)