Skip to content

Commit

Permalink
API: Fix http logger
Browse files Browse the repository at this point in the history
I'm not sure what / is, but it's also spamming logs from localhost.
Probably docker thingy
  • Loading branch information
Fesaa committed Oct 6, 2024
1 parent adeef20 commit 3fc1d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion startup.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func SetupApp(baseUrl string) *fiber.App {
TimeFormat: "2006/01/02 15:04:05",
Format: "${time} | ${locals:requestid} | ${status} | ${latency} | ${reqHeader:X-Real-IP} ${ip} | ${method} | ${path} | ${error}\n",
Next: func(c *fiber.Ctx) bool {
return c.Route().Path == "/api/stats" || !config.I().Logging.LogHttp
return c.Path() == "/api/stats" || c.Path() == "/" || !config.I().Logging.LogHttp
},
}))

Expand Down

0 comments on commit 3fc1d4b

Please sign in to comment.