Commit b58785b2 authored by Brendan Burns's avatar Brendan Burns

Merge pull request #3019 from dchen1107/cleanup

suppress unnecessary stacktrace when http status code is redirect relate...
parents 4427672c 71fc5940
...@@ -315,6 +315,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { ...@@ -315,6 +315,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
defer httplog.NewLogged(req, &w).StacktraceWhen( defer httplog.NewLogged(req, &w).StacktraceWhen(
httplog.StatusIsNot( httplog.StatusIsNot(
http.StatusOK, http.StatusOK,
http.StatusMovedPermanently,
http.StatusTemporaryRedirect,
http.StatusNotFound, http.StatusNotFound,
), ),
).Log() ).Log()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment