mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #36159 from cosmo0920/add-partial-flag-into-record
Fluentd Log Driver: Add partial flag into record
This commit is contained in:
commit
fff01bc14d
1 changed files with 3 additions and 0 deletions
|
@ -163,6 +163,9 @@ func (f *fluentd) Log(msg *logger.Message) error {
|
|||
for k, v := range f.extra {
|
||||
data[k] = v
|
||||
}
|
||||
if msg.Partial {
|
||||
data["partial_message"] = "true"
|
||||
}
|
||||
|
||||
ts := msg.Timestamp
|
||||
logger.PutMessage(msg)
|
||||
|
|
Loading…
Reference in a new issue