pinojs/pino-http

Bug: `customErrorMessage` actually got passed 4 arguments, but it's ts declaration only has 3 arguments

Geschlossen

#359 geöffnet am 25.11.2024

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (128 Forks)github user discovery
buggood first issue

Repository-Metriken

Stars
 (694 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1m) (2 gemergte PRs in 30 T)

Beschreibung

customErrorMessage actually got passed 4 arguments: https://github.com/pinojs/pino-http/blob/8baaeec6fa2b53a7fe1c6bb948b3f46b7dbb6bdf/logger.js#L123 , but its ts declaration only has 3 arguments: https://github.com/pinojs/pino-http/blob/8baaeec6fa2b53a7fe1c6bb948b3f46b7dbb6bdf/index.d.ts#L34

I'd like to make use of the 4th argument "responseTime" in my logging message.

Contributor Guide