Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc48658c

Browse files
committed
Fix startup log wrapping
1 parentf6b9fce commitc48658c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎agent/agent.go

Lines changed: 0 additions & 2 deletions
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(chanstruct{})
780780
err:=a.trackConnGoroutine(func() {
781-
buffer:=make([]byte,0,1<<20)
782781
scanner:=bufio.NewScanner(reader)
783-
scanner.Buffer(buffer,1<<20)
784782
forscanner.Scan() {
785783
queueLog(agentsdk.StartupLog{
786784
CreatedAt:database.Now(),

‎site/src/components/Logs/Logs.tsx

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp