Merge pull request #3019 from dchen1107/cleanup

suppress unnecessary stacktrace when http status code is redirect relate...
This commit is contained in:
Brendan Burns 2014-12-17 22:08:43 -08:00
commit b58785b27d

View File

@ -315,6 +315,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
defer httplog.NewLogged(req, &w).StacktraceWhen(
httplog.StatusIsNot(
http.StatusOK,
http.StatusMovedPermanently,
http.StatusTemporaryRedirect,
http.StatusNotFound,
),
).Log()