remove fields written into "PartsOrder" (#383)

This commit is contained in:
Adam Horacek 2022-06-28 16:36:09 -07:00 committed by GitHub
parent a4ec5e4cdd
commit 2a13872817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ func (w ConsoleWriter) Write(p []byte) (n int, err error) {
for _, p := range w.PartsOrder {
w.writePart(buf, evt, p)
delete(evt, p)
}
w.writeFields(evt, buf)