Commit 28662b43 authored by Patrick Bajao's avatar Patrick Bajao Committed by Alessio Caiazza

Stop logging when path is excluded

This causes logging a lot and reporting to sentry which can
cause performance issues.

(cherry picked from commit 6eb4563f)
parent 4a51c784
......@@ -37,7 +37,6 @@ func (s *Static) ServeExisting(prefix urlprefix.Prefix, cache CacheMode, notFoun
// %20 in their name.
relativePath, err := s.validatePath(prefix.Strip(r.URL.Path))
if err != nil {
log.WithRequest(r).WithError(err).Error()
notFoundHandler.ServeHTTP(w, r)
return
}
......
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