Skip to content

Commit

Permalink
Use seconds instead of ms to report request times
Browse files Browse the repository at this point in the history
  • Loading branch information
pastelsky committed Jun 6, 2021
1 parent 5fb566a commit 1d11eaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/middlewares/requestLogger.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ async function requestLoggerMiddleware(ctx, next) {
status: ctx.response.status,
time,
},
`REQUEST: ${ctx.response.status}${time.toFixed(0)} ms ${ctx.req.method} ${
ctx.request.url
}`
`REQUEST: ${ctx.response.status} ${(time / 1000).toFixed(2)}s ${
ctx.req.method
} ${ctx.request.url}`
)
}

Expand Down

0 comments on commit 1d11eaf

Please sign in to comment.