You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this solution. It's unbelievable that the winston developers still haven't fixed this issue after so many years. Anyway, since this problem only seems to happen with Error objects, it's better to only apply your toJSON() transformation for messages that are actually Error objects. Here's a little function that does that -- it wraps logger.log() and all the other methods, too.
Thanks for this solution. It's unbelievable that the winston developers still haven't fixed this issue after so many years. Anyway, since this problem only seems to happen with Error objects, it's better to only apply your
toJSON()
transformation for messages that are actually Error objects. Here's a little function that does that -- it wrapslogger.log()
and all the other methods, too.The text was updated successfully, but these errors were encountered: