Commit 6eb4563f authored by Patrick Bajao's avatar Patrick Bajao

Stop logging when path is excluded

This causes logging a lot and reporting to sentry which can
cause performance issues.
parent b34345b3
---
title: Stop logging when path is excluded
merge_request:
author:
type: security
......@@ -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