Skip to content

Commit

Permalink
Cleanup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Aug 10, 2023
1 parent 2f73eee commit 194c959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multiepoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func newMultiEpochHandler(handler *MultiEpoch, lsConf *ListenerConfig) func(ctx
Addr: addr,
IsTLS: parsedTargetURL.Scheme == "https",
}
klog.Infof("Will proxy unhandled RPC methods to %q", target)
klog.Infof("Will proxy unhandled RPC methods to %q", addr)
}
return func(c *fasthttp.RequestCtx) {
startedAt := time.Now()
Expand Down Expand Up @@ -279,7 +279,7 @@ func newMultiEpochHandler(handler *MultiEpoch, lsConf *ListenerConfig) func(ctx
klog.Infof("[%s] received request: %q", reqID, strings.TrimSpace(string(body)))

if proxy != nil && !isValidMethod(rpcRequest.Method) {
klog.Infof("[%s] Unhandled method %q, proxying to %q", reqID, rpcRequest.Method, lsConf.ProxyConfig.Target)
klog.Infof("[%s] Unhandled method %q, proxying to %q", reqID, rpcRequest.Method, proxy.Addr)
// proxy the request to the target
proxyReq := fasthttp.AcquireRequest()
defer fasthttp.ReleaseRequest(proxyReq)
Expand Down

0 comments on commit 194c959

Please sign in to comment.