JSON.stringify throws by default "TypeError: Converting circular structure to JSON" in @timberio/node when trying to log context like
const context = {};
context.c = context;
Should handle gracefully with https://github.com/davidmarkclements/fast-safe-stringify to prevent from just throwing by following the protip.
I had this issue by logging an unknown object from a module. Thought it could be an improvement when the library itself is doing such conversion.
JSON.stringify throws by default "TypeError: Converting circular structure to JSON" in @timberio/node when trying to log context like
Should handle gracefully with https://github.com/davidmarkclements/fast-safe-stringify to prevent from just throwing by following the protip.
I had this issue by logging an unknown object from a module. Thought it could be an improvement when the library itself is doing such conversion.