diff --git a/gee-web/day5-middleware/main.go b/gee-web/day5-middleware/main.go index b66dbdc..30f7a1c 100644 --- a/gee-web/day5-middleware/main.go +++ b/gee-web/day5-middleware/main.go @@ -31,8 +31,7 @@ func onlyForV2() gee.HandlerFunc { return func(c *gee.Context) { // Start timer t := time.Now() - // if a server error occurred - c.Fail(500, "Internal Server Error") + c.Next() // Calculate resolution time log.Printf("[%d] %s in %v for group v2", c.StatusCode, c.Req.RequestURI, time.Since(t)) }