Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
remove excessive debug logging
Browse files Browse the repository at this point in the history
aaperis committed Apr 21, 2023
1 parent a50700b commit 7146394
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions proxy.go
Original file line number Diff line number Diff line change
@@ -87,11 +87,6 @@ func (p *Proxy) notAllowedResponse(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusForbidden)
}

func (p *Proxy) notAcceptableResponse(w http.ResponseWriter, _ *http.Request) {
log.Debug("not acceptable response")
w.WriteHeader(http.StatusNotAcceptable)
}

func (p *Proxy) notAuthorized(w http.ResponseWriter, _ *http.Request) {
log.Debug("not authorized")
w.WriteHeader(http.StatusUnauthorized)
@@ -115,7 +110,7 @@ func (p *Proxy) allowedResponse(w http.ResponseWriter, r *http.Request) {
filepath, err := helper.FormatUploadFilePath(rawFilepath)
if err != nil {
log.Debugf(err.Error())
p.notAcceptableResponse(w, r)
w.WriteHeader(http.StatusNotAcceptable)

return
}

0 comments on commit 7146394

Please sign in to comment.