mirror of
https://github.com/usememos/memos.git
synced 2025-03-20 12:40:09 +01:00
chore: add latency in log (#2374)
* Print profile.Data in boot log * Add latency in request log
This commit is contained in:
parent
95bfcb8055
commit
d3e32f0d5a
@ -59,7 +59,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
|
||||
}
|
||||
|
||||
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
|
||||
Format: `{"time":"${time_rfc3339}",` +
|
||||
Format: `{"time":"${time_rfc3339}","latency":"${latency_human}",` +
|
||||
`"method":"${method}","uri":"${uri}",` +
|
||||
`"status":${status},"error":"${error}"}` + "\n",
|
||||
}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user