Update hlog_mw.go

This commit is contained in:
Mikhail 2024-06-07 20:23:48 +00:00
parent 6e4d01112c
commit efe5f2bf3e

@ -12,8 +12,8 @@ func ContextLogger(logger hlog.Logger) fiber.Handler {
c.Locals(HlogCtxKey, logger.With(map[string]string{ c.Locals(HlogCtxKey, logger.With(map[string]string{
"ctxuserip": c.Get("X-Real-IP"), "ctxuserip": c.Get("X-Real-IP"),
"ctxuserport": c.Get("X-Client-Port"), "ctxuserport": c.Get("X-Client-Port"),
"keydomain": c.Hostname(), "keydomain": c.Get("Origin"),
"keypath": c.Get("Origin"), "keypath": c.Path(),
})) }))
return c.Next() return c.Next()
} }