pinojs/pino-http

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

クローズ

#359 opened on 2024/11/25

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (128 件のフォーク)github user discovery
buggood first issue

Repository metrics

Stars
 (694 個のスター)
PR merge metrics
 (平均マージ 1m) (30d で 2 merged PRs)

説明

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.

コントリビューターガイド