Update hlog_mw.go
This commit is contained in:
parent
6e4d01112c
commit
efe5f2bf3e
@ -12,8 +12,8 @@ func ContextLogger(logger hlog.Logger) fiber.Handler {
|
||||
c.Locals(HlogCtxKey, logger.With(map[string]string{
|
||||
"ctxuserip": c.Get("X-Real-IP"),
|
||||
"ctxuserport": c.Get("X-Client-Port"),
|
||||
"keydomain": c.Hostname(),
|
||||
"keypath": c.Get("Origin"),
|
||||
"keydomain": c.Get("Origin"),
|
||||
"keypath": c.Path(),
|
||||
}))
|
||||
return c.Next()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user