From bc280e3259f726414d8e9d645cbfb74201182d4d Mon Sep 17 00:00:00 2001 From: Jessica Jiang Date: Fri, 4 Aug 2023 16:10:41 -0400 Subject: [PATCH] remove extra field setting --- pkg/smokescreen/conntrack/instrumented_conn.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/smokescreen/conntrack/instrumented_conn.go b/pkg/smokescreen/conntrack/instrumented_conn.go index eb8e735f..2e6093fb 100644 --- a/pkg/smokescreen/conntrack/instrumented_conn.go +++ b/pkg/smokescreen/conntrack/instrumented_conn.go @@ -17,7 +17,6 @@ const ( LogFieldDuration = "duration" LogFieldError = "error" LogFieldLastActivity = "last_activity" - LogFieldOutboundAddr = "outbound_remote_addr" CanonicalProxyConnClose = "CANONICAL-PROXY-CN-CLOSE" ) @@ -114,11 +113,6 @@ func (ic *InstrumentedConn) Close() error { errorMessage = ic.ConnError.Error() } - var outboundAddr string - if ic.RemoteAddr() != nil { - outboundAddr = ic.RemoteAddr().String() - } - ic.logger.WithFields(logrus.Fields{ LogFieldBytesIn: ic.BytesIn, LogFieldBytesOut: ic.BytesOut, @@ -126,7 +120,6 @@ func (ic *InstrumentedConn) Close() error { LogFieldDuration: duration, LogFieldError: errorMessage, LogFieldLastActivity: time.Unix(0, atomic.LoadInt64(ic.LastActivity)).UTC(), - LogFieldOutboundAddr: outboundAddr, }).Info(CanonicalProxyConnClose) ic.tracker.Wg().Done()