chore: format for livetail changed (#3332)

This commit is contained in:
Nityananda Gohain 2023-08-14 17:08:57 +05:30 committed by GitHub
parent ec7c99dd26
commit 17c61a61ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3128,7 +3128,7 @@ func (aH *APIHandler) liveTailLogs(w http.ResponseWriter, r *http.Request) {
var buf bytes.Buffer
enc := json.NewEncoder(&buf)
enc.Encode(log)
fmt.Fprintf(w, "event: log\ndata: %v\n\n", buf.String())
fmt.Fprintf(w, "data: %v\n\n", buf.String())
flusher.Flush()
case <-client.Done:
zap.S().Debug("done!")