trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

[TRI-3566] Logging strips out key/value pairs when the value is `0`

Open matt-aitken opened this issue 1 year ago • 1 comments

If you do this:

logger.log("Some text", { foo: "bar", val: 0 });

The properties that are stored are just:

{ "foo": "bar" }

It should include "val": 0 as well. This is most likely a bug when we flatten the attributes into a flat structure. A classic falsy check bug is my guess.

TRI-3566

matt-aitken avatar Sep 09 '24 15:09 matt-aitken

@matt-aitken how do i reproduce the issue? this is working fine: image

image

abhi12299 avatar Sep 13 '24 06:09 abhi12299