mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-21 02:23:12 +08:00
chore: format for livetail changed (#3332)
This commit is contained in:
parent
ec7c99dd26
commit
17c61a61ec
@ -3128,7 +3128,7 @@ func (aH *APIHandler) liveTailLogs(w http.ResponseWriter, r *http.Request) {
|
|||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
enc := json.NewEncoder(&buf)
|
enc := json.NewEncoder(&buf)
|
||||||
enc.Encode(log)
|
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()
|
flusher.Flush()
|
||||||
case <-client.Done:
|
case <-client.Done:
|
||||||
zap.S().Debug("done!")
|
zap.S().Debug("done!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user