Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: address logging infinite recursion issue
This cropped up as a bug recently where Content Discovery were trying to log an entire Request object, which references itself. This resulted in Node.js running out of memory because we were infinitely recursing over the properties. This is a bug that's always been present in n-mask-logger. I've addressed the issue with my first legit use of `WeakSet` and I'm quite pleased with myself about it 馃榿
- Loading branch information
1 parent
2a316fd
commit 1eed362
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters