Skip to content

Commit 6114162

Browse files
seveasroot
authored andcommitted
parser: logfmt: bare keys get true as value, not nil (fluent#6099)
In fluent#4359, @nokute78 notes that bare keys in logfmt lines get the wrong value after parsing: they should get a `true` value, not `nil`. Signed-off-by: Dennis Kaarsemaker <dennis@kaarsemaker.net> Signed-off-by: root <root@sumit-acs.novalocal>
1 parent 5144312 commit 6114162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flb_parser_logfmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static int logfmt_parser(struct flb_parser *parser,
182182
msgpack_pack_str(tmp_pck, 0);
183183
}
184184
else {
185-
msgpack_pack_nil(tmp_pck);
185+
msgpack_pack_true(tmp_pck);
186186
}
187187
}
188188
else {

0 commit comments

Comments
 (0)