Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

how to remove this "REQUEST COMPLETED" from pino #70

Open
artoodeeto opened this issue Aug 1, 2021 · 1 comment
Open

how to remove this "REQUEST COMPLETED" from pino #70

artoodeeto opened this issue Aug 1, 2021 · 1 comment

Comments

@artoodeeto
Copy link

How do you remove the request and response from pino? It seems too long and unnecessary. I redacted both but is there another way to remove this? I didn't get this until I was creating a test.

Screen Shot 2021-07-31 at 7 45 40 PM

Redacted both but it's annoying.

Thank you much.

@outranker
Copy link

outranker commented Sep 1, 2021

if you are talking about how to remove redacted field, you can add additional option called remove to redacted
{ redact: {paths: ['req', 'res'], remove: true } }

but as for the message in color, i think it's because you are using pretty-print and it's related to that package.
maybe you should see the docs for that package. hopefully, there is an option that does that just

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants