GCP Logs: send log line as jsonPayload.message instead of jsonPayload.data

Signed-off-by: gkze <george@bugsnag.com>
This commit is contained in:
gkze 2017-05-11 16:40:13 -07:00
parent df4ca50805
commit d42c268fc3
1 changed files with 3 additions and 3 deletions

View File

@ -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