express-winston icon indicating copy to clipboard operation
express-winston copied to clipboard

Hide all body response on particular routes

Open olivierto opened this issue 6 years ago • 1 comments

Hello there, I didn't manage to find a way to hide all the body of a response for a particular route.

My problem is when express respond with a binary (eg a zip file), the console is flooded with binary data... I'd like to prevent this without loosing the access log. I tried to set req._routeBlacklists.body = ['*'] with no success...

Any idea on how to do?

Thanks

olivierto avatar Jun 14 '18 07:06 olivierto

Hi is this possible?

joeferraro avatar Oct 23 '20 13:10 joeferraro