Skip to content

Commit 4e1ca07

Browse files
author
Samuel Bodin
authored
Update nano.js (#270)
1 parent dc122d4 commit 4e1ca07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/nano.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ module.exports = exports = function dbScope (cfg) {
381381
}
382382

383383
// scrub and log
384+
delete req.agent // Agent contains circular refs that does not works well with JSON.stringify
384385
const scrubbedReq = JSON.parse(JSON.stringify(req))
385386
scrubRequest(scrubbedReq, true)
386387
log(scrubbedReq)

0 commit comments

Comments
 (0)