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 8d2ba22 commit 74b55a0Copy full SHA for 74b55a0
middleware.go
@@ -37,7 +37,7 @@ func RequestLogging(config *Config) func(http.Handler) http.Handler {
37
// RequestLoggingWithEcho creates the middleware which logs a request log and creates a request-context logger
38
func RequestLoggingWithEcho(config *Config) echo.MiddlewareFunc {
39
return func(next echo.HandlerFunc) echo.HandlerFunc {
40
- fn := func(c echo.Context) error {
+ return func(c echo.Context) error {
41
reserve := NewReserve(config, c.Request())
42
43
wrw := &wrappedResponseWriter{
@@ -54,8 +54,6 @@ func RequestLoggingWithEcho(config *Config) echo.MiddlewareFunc {
54
55
return next(c)
56
}
57
-
58
- return fn
59
60
61
0 commit comments