From d42c268fc3983d19e9dbd800948e7c4445c425f0 Mon Sep 17 00:00:00 2001 From: gkze Date: Thu, 11 May 2017 16:40:13 -0700 Subject: [PATCH] GCP Logs: send log line as jsonPayload.message instead of jsonPayload.data Signed-off-by: gkze --- daemon/logger/gcplogs/gcplogging.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/logger/gcplogs/gcplogging.go b/daemon/logger/gcplogs/gcplogging.go index 3a48067f9d..a33566ae1f 100644 --- a/daemon/logger/gcplogs/gcplogging.go +++ b/daemon/logger/gcplogs/gcplogging.go @@ -61,7 +61,7 @@ type gcplogs struct { type dockerLogEntry struct { Instance *instanceInfo `json:"instance,omitempty"` Container *containerInfo `json:"container,omitempty"` - Data string `json:"data,omitempty"` + Message string `json:"message,omitempty"` } type instanceInfo struct { @@ -219,7 +219,7 @@ func ValidateLogOpts(cfg map[string]string) error { } func (l *gcplogs) Log(m *logger.Message) error { - data := string(m.Line) + message := string(m.Line) ts := m.Timestamp logger.PutMessage(m) @@ -228,7 +228,7 @@ func (l *gcplogs) Log(m *logger.Message) error { Payload: &dockerLogEntry{ Instance: l.instance, Container: l.container, - Data: data, + Message: message, }, }) return nil