Closed renanccastro closed 3 years ago
Hello @renanccastro, it looks that the object you are sending through the library contains circular reference and when it's being converted to JSON string it throws this error.
Can you figure out if it's throwing this error for some specific log statements?
Sorry, we can't identify exactly the log with the error. It seems like the library could get some safety wrap around the arguments, so it doesn't happen. What do you think? Or at least catch and warn about it instead of throwing the error. Would a PR be welcome?
Sure, since you can reproduce the issue feel free to create a PR and we'll check it and merge if it's OK.
Closing as we were unable to reproduce, please reopen if issue still exists.
Hello, everyone. We are using this library to push logs to loggly with Winston and Meteor, but some circular JSON structure is crashing our servers from time to time. Any clues on what could be done on the library level to avoid this?
This is some of the logs we have:
Thanks for the help!