Closed jonathansamines closed 6 years ago
I think we can get rid of attaching the context to the error object entirely. Thanks for bringing it up. A fix will land in v1.50.1.
@basti1302 Thanks for the quick response. Will give the new version a try.
When this library is enabled, seems like http errors gets decorated with the current request information if available.
See:
However, if for some reason, an application which prints the error (e.g in an express error handler), with a method that inspects all enumerable properties, then the current request object may be printed, and that may be a problem for a couple of reasons:
JSON.stringify
which by default don't limit the recursion levels and it may cause recursion calls problems withrequest
which has circular referencesWould it make sense to change those properties to be
non enumerable
by default?