We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9d077 commit c597c2bCopy full SHA for c597c2b
api.go
@@ -500,7 +500,7 @@ func (cr *Cluster) initAPIv0() http.Handler {
500
501
type logObj struct {
502
Type string `json:"type"`
503
- Time int64 `json:"time"`
+ Time int64 `json:"time"` // UnixMilli
504
Level string `json:"lvl"`
505
Log string `json:"log"`
506
}
@@ -553,6 +553,17 @@ func (cr *Cluster) initAPIv0() http.Handler {
553
level.Store((int32)(LogLevelWarn))
554
case "ERRO":
555
level.Store((int32)(LogLevelError))
556
+ default:
557
+ continue
558
+ }
559
+ select {
560
+ case c <- &logObj{
561
+ Type: "log",
562
+ Time: time.Now().UnixMilli(),
563
+ Level: LogLevelInfo.String(),
564
+ Log: "[dashboard]: Set log level of this log.io to " + l,
565
+ }:
566
567
568
569
0 commit comments