Skip to content

Bug: null value logs as undefined #242

@dever23b

Description

@dever23b

Describe the bug
TSLog writes null values as undefined. It severely threw off my troubleshooting of an unrelated bug in my project.

To Reproduce
Steps to reproduce the behavior:

const testObj = { true: true, false: false, null: null, undefined: undefined };
console.debug('Testing [console]', testObj);
log.debug('Testing [tslog]', testObj);

Testing [console] {true: true, false: false, null: null, undefined: undefined}
index.js:81 2023-07-09 05:09:32.911 DEBUG TestComponent Testing [tslog] {
true: true,
false: false,
null: undefined,
undefined: undefined
}

Expected behavior
Correct values to be displayed when an object is logged

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions