Skip to content

Commit

Permalink
parser: logfmt: bare keys get true as value, not nil (fluent#6099)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
seveas authored Oct 15, 2022
1 parent 4cde68c commit 00c54dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_parser_logfmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static int logfmt_parser(struct flb_parser *parser,
msgpack_pack_str(tmp_pck, 0);
}
else {
msgpack_pack_nil(tmp_pck);
msgpack_pack_true(tmp_pck);
}
}
else {
Expand Down

0 comments on commit 00c54dc

Please sign in to comment.