From 372b409f87227f22fbba7857eb84fe6c64a5f507 Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Mon, 26 Sep 2022 14:12:44 +0200 Subject: [PATCH] logfmt: bare keys get `true` as value, not `nil` 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 --- src/flb_parser_logfmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flb_parser_logfmt.c b/src/flb_parser_logfmt.c index bb5a8f2fea6..8f72b22f803 100644 --- a/src/flb_parser_logfmt.c +++ b/src/flb_parser_logfmt.c @@ -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 {