Closed jamiemjennings closed 7 years ago
Do you by chance have an empty requestWhitelist
? That seems like the only way this bug could have happened.
My (hopeful, but very likely) fix is released in 2.1.2. Feel free to comment here or open a new issue if that doesn't fix your problem.
@rosston: thanks for the quick response. Yes this would be with an empty requestWhitelist
. I'll test 2.1.2
to confirm the fix.
@rosston: the fix works! Thanks again
Hitting the following error with
express-winston v2.1.1
when res.body is an empty array[]
. This problem did not occur withexpress-winston v2.1.0
.The problem appears to be here: https://github.com/bithavoc/express-winston/pull/129/files#diff-168726dbe96b3ce427e7fedce31bb0bcR257
ie.
delete logData.req.body;