Skip to content

Commit

Permalink
feat: add latency to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Mar 20, 2023
1 parent e27c903 commit 4bdcca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
app := fiber.New()

app.Use(logger.New(logger.Config{
Format: "[${ip}]:${port} ${status} - ${method} ${path}\n",
Format: "[${ip}]:${port} [${latency}] ${status} - ${method} ${path}\n",
}))

host := os.Getenv("HOST")
Expand Down

0 comments on commit 4bdcca6

Please sign in to comment.