Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: add latency in log (#2374)
Athurg Goothd3e32f0d5abe
diff --git a/server/server.go b/server/server.goindex d8a6f35e7..326c27708 100644--- a/server/server.go+++ b/server/server.go@@ -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",}))