Skip to content

Commit

Permalink
logfmt: bare keys get true as value, not nil
Browse files Browse the repository at this point in the history
In #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 committed Sep 26, 2022
1 parent f38dd46 commit 17f3291
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 17f3291

Please sign in to comment.