Remove some debug logs (requested in review)

This commit is contained in:
David Tootill 2016-04-27 09:25:13 -07:00
parent 2a76a717e6
commit 64b78461f6
2 changed files with 1 additions and 3 deletions

View file

@ -84,7 +84,7 @@ func (s *AccessLogSuite) TestAccessLog(c *check.C) {
c.Assert(count, checker.Equals, 3)
}
// Verify no other Trarfik problems
// Verify no other Traefik problems
if traefikLog, err := ioutil.ReadFile("traefik.log"); err != nil {
c.Assert(err.Error(), checker.Equals, "")
} else if len(traefikLog) > 0 {

View file

@ -73,7 +73,6 @@ func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Ha
next(rw, r)
} else {
reqid := strconv.FormatUint(atomic.AddUint64(&reqidCounter, 1), 10)
log.Debugf("Starting request %s: %s %s %s %s %s", reqid, r.Method, r.URL.RequestURI(), r.Proto, r.Referer(), r.UserAgent())
r.Header[loggerReqidHeader] = []string{reqid}
defer deleteReqid(r, reqid)
frontendBackendLoggingHandler{reqid, l.file, next}.ServeHTTP(rw, r)
@ -82,7 +81,6 @@ func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Ha
// Delete a reqid from the map and the request's headers
func deleteReqid(r *http.Request, reqid string) {
log.Debugf("Ending request %s", reqid)
infoRwMap.Remove(reqid)
delete(r.Header, loggerReqidHeader)
}