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 <[email protected]>
Signed-off-by: root <[email protected]>
  • Loading branch information
seveas authored and root committed Feb 8, 2023
1 parent 5144312 commit 6114162
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 6114162

Please sign in to comment.