Skip to content

Commit

Permalink
Fix invalid json for runtime log response
Browse files Browse the repository at this point in the history
  • Loading branch information
i-hate-nicknames committed May 6, 2021
1 parent 36215de commit e23b747
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/visor/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@ func (v *Visor) UpdateStatus() (string, error) {

// RuntimeLogs returns visor runtime logs
func (v *Visor) RuntimeLogs() (string, error) {
var builder strings.Builder
builder.WriteString("[")
logs, _ := v.logstore.GetLogs()
return strings.Join(logs, ""), nil
builder.WriteString(strings.Join(logs, ","))
builder.WriteString("]")
return builder.String(), nil
}

0 comments on commit e23b747

Please sign in to comment.