Skip to content

Conversation

@joehan
Copy link
Contributor

@joehan joehan commented Jul 14, 2021

Description

Fixes an issue where objects containing members that define their own toJSON function could not be logged correctly. Fixes #907

Code sample

The logger should now work as expected for cases like:
logger.log("something!", {a: new Date()}
logger.log("something!", {a: moment()}

@joehan joehan changed the title Jh take 2 Fix logging for objects that define toJSON Jul 14, 2021
@joehan joehan requested review from inlined and mbleigh and removed request for mbleigh July 14, 2021 17:57
Copy link
Member

@inlined inlined left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛳 it

@joehan joehan merged commit 641cae8 into master Jul 14, 2021
@joehan joehan deleted the jh-take-2 branch July 14, 2021 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants