Fix log view (#1874)

closes #1857
closes #1520
closes #1879 
- fixes unicode log lines as reported in matrix

---------

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Anbraten
2023-07-01 18:55:00 +02:00
committed by GitHub
parent 3714e9c218
commit 3d435a9cb7
3 changed files with 56 additions and 15 deletions

View File

@@ -186,8 +186,8 @@ func LogStreamSSE(c *gin.Context) {
}
if step.State != model.StatusRunning {
log.Debug().Msg("stream not found.")
logWriteStringErr(io.WriteString(rw, "event: error\ndata: stream not found\n\n"))
log.Debug().Msg("step not running (anymore).")
logWriteStringErr(io.WriteString(rw, "event: error\ndata: step not running (anymore)\n\n"))
return
}