We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c607ba2 commit c1a0b31Copy full SHA for c1a0b31
echo/middleware/logger/ensure-context-logger.go
@@ -11,7 +11,7 @@ func EnsureContextLogger(_ di.Container) echo.MiddlewareFunc {
11
return func(next echo.HandlerFunc) echo.HandlerFunc {
12
return func(c echo.Context) error {
13
ctx := c.Request().Context()
14
- logger := log.With().Logger()
+ logger := log.With().Caller().Logger()
15
newCtx := logger.WithContext(ctx)
16
c.SetRequest(c.Request().WithContext(newCtx))
17
return next(c)
0 commit comments