We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4765db7 commit 013857eCopy full SHA for 013857e
reporter/reporter.go
@@ -108,11 +108,12 @@ func MiddlewareWithConfig(config Config) echo.MiddlewareFunc {
108
109
func appendFields(f labstack.Fields, c echo.Context, config Config) {
110
f.
111
+ Add("id", labstack.RequestID(c.Request(), c.Response())).
112
Add("host", c.Request().Host).
113
Add("path", c.Request().URL.Path).
114
Add("method", c.Request().Method).
- Add("client_id", c.RealIP()).
115
- Add("remote_ip", c.RealIP()).
+ Add("client_id", labstack.RealIP(c.Request())).
116
+ Add("remote_ip", labstack.RealIP(c.Request())).
117
Add("status", c.Response().Status)
118
for _, h := range config.Headers {
119
f.Add("header_"+h, c.Request().Header.Get(h))
0 commit comments