versioncontrol: remove per request debug
Significantly reduced log output and it's not that useful information. Change-Id: I6dcb7a96a4dd53d17b4819e84067a32c0571e2d2
This commit is contained in:
parent
b2acd93a78
commit
3785098f1d
@ -103,12 +103,6 @@ func (peer *Peer) HandleGet(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
var xfor string
|
||||
if xfor = r.Header.Get("X-Forwarded-For"); xfor == "" {
|
||||
xfor = r.RemoteAddr
|
||||
}
|
||||
peer.Log.Debug("Request received.", zap.String("From", r.RemoteAddr), zap.String("For", xfor))
|
||||
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
_, err := w.Write(peer.response)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user