1
0
Эх сурвалжийг харах

Log lines in REST should have lower case keys

Jakob Borg 10 жил өмнө
parent
commit
464e6bec95
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      lib/logger/logger.go

+ 2 - 2
lib/logger/logger.go

@@ -319,8 +319,8 @@ type Recorder struct {
 
 // A Line represents a single log entry.
 type Line struct {
-	When    time.Time
-	Message string
+	When    time.Time `json:"when"`
+	Message string    `json:"message"`
 }
 
 func NewRecorder(l Logger, level LogLevel, size, initial int) *Recorder {