We are trying to use loggly in our AngularJS/Breeze web portal and I am having some trouble when I am trying to send the error over the wire via $log.error (both the angular logging and loggly logging are in play here). Eventually there is a call to JSON.stringify which throws:
Converting circular structure to JSON
The problem is that the entityErrors array contains an array of entities where each entity contains an entityAspect which also contains the same entity which contains the same entityAspect which... yeah you get where I am going.
EntityAspect is automatically inserted by Breeze, so I am not sure how to get around this circular reference. Are there any gotchas that I haven't thought of that could be causing this recursive nesting, or is this just how the entityAspect functionality in Breeze works?