Skip to content

Commit

Permalink
fix: add missing request.id on response log
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed Apr 8, 2024
1 parent 9ac38d8 commit a9bd25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function buildServer(
server.addHook("onResponse", async(request, reply) => {
if (request.method !== "OPTIONS") {
request.log.info(
`response returned "${request.method} ${request.raw.url}",`
`(${request.id}) response returned "${request.method} ${request.raw.url}",`
+ ` statusCode: ${reply.raw.statusCode} (${reply.elapsedTime.toFixed(3)}ms)`
);
}
Expand Down

0 comments on commit a9bd25f

Please sign in to comment.