Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/log-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class LogController {
* Logs the outcome of a completed request.
* Uses `error` level when an error is present, `info` otherwise.
*
* @param {Error | null} error Error that occurred during the response, if any.
* @param {Error | null | undefined} error Error that occurred during the response, if any.
* @param {object} request Fastify request object.
* @param {object} reply Fastify reply object.
* @param {object} [metadata] Extra contextual data (unused).
Expand Down
2 changes: 1 addition & 1 deletion types/logger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export declare class LogController {
isLogDisabled (request: FastifyRequest): boolean
incomingRequest (request: FastifyRequest, reply: FastifyReply, metadata?: Record<string, unknown>): void
requestCompleted (
error: Error | null,
error: Error | null | undefined,
request: FastifyRequest,
reply: FastifyReply,
metadata?: Record<string, unknown>
Expand Down
Loading