Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid errors during logging of requests/responses (#188)
Fixes #179 This commit slightly modifies how requests and responses are logged when debug logging is enabled to avoid any JSON marshalling type errors. We no longer use JSON.stringify() to format the request and response objects, as they actually aren't needed because the logger.debug() and logger.error() functions can handle objects just fine and do a decent job of pretty-printing them.
- Loading branch information