NestJS · Senior · Question 43 of 75

Why should secrets not be logged by Nest's default exception or request logging?

Explanation

Pino's redact option removes paths like req.headers.authorization before writing logs.

Further reading

Problem with a question

NestJS · Senior · question 43

Test yourself

Take the NestJS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz