func (*Tracer) Middleware(next http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
		t := Tracer{w, 200}
		next.ServeHTTP(&t, req)
		logrus.Debugf("%s %s (Returned: %d)", req.Method, req.URL, t.status)
	})
}
// Middleware Prints request in log
Middleware Prints request in log
// Middleware Prints request in log
func (*Tracer) Middleware(next http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
		t := Tracer{w, 200}
		next.ServeHTTP(&t, req)
		logrus.Debugf("%s %s (Returned: %d)", req.Method, req.URL, t.status)
	})
}
func ( * Tracer ) Middleware ( next http . Handler ) http . Handler { return http . HandlerFunc ( func ( w http . ResponseWriter , req * http . Request ) { t := Tracer { w , 200 } next . ServeHTTP ( & t , req ) logrus . Debugf ( " " , req . Method , req . URL , t . status ) } ) }
Middleware Prints request in log
Middleware Prints request in log