-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proxy: remove capnslog #11614
proxy: remove capnslog #11614
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11614 +/- ##
==========================================
- Coverage 66.56% 66.22% -0.34%
==========================================
Files 403 403
Lines 36630 36661 +31
==========================================
- Hits 24381 24277 -104
- Misses 10768 10894 +126
- Partials 1481 1490 +9
Continue to review full report at Codecov.
|
proxy/httpproxy/reverse.go
Outdated
@@ -75,10 +75,14 @@ func (p *reverseProxy) ServeHTTP(rw http.ResponseWriter, clientreq *http.Request | |||
proxybody, err = ioutil.ReadAll(clientreq.Body) | |||
if err != nil { | |||
msg := fmt.Sprintf("failed to read request body: %v", err) | |||
plog.Println(msg) | |||
p.lg.Info(msg, zap.Error(err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jingyih thanks, lgtm except one comment here that, the msg
already has err
so we shouldn't repeat it, and just use p.lg.Info(msg)
or remove err
from the msg
? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jingyih
3d8c801
to
81f00b0
Compare
Remove dependency of
capnslog
inproxy
package.Related: #11426