From 194c959166efd27b586fd88eab73191e4e12e03a Mon Sep 17 00:00:00 2001 From: gagliardetto Date: Thu, 10 Aug 2023 12:35:53 +0200 Subject: [PATCH] Cleanup logs --- multiepoch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multiepoch.go b/multiepoch.go index 9c36443d..2cfbb9c6 100644 --- a/multiepoch.go +++ b/multiepoch.go @@ -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() @@ -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)