Browse Source

Log lines in REST should have lower case keys

Jakob Borg 10 years ago
parent
commit
464e6bec95
1 changed files with 2 additions and 2 deletions
  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 {