From 1e99f2d58032b8dc656826adff1d6e207650ca74 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Tue, 28 Mar 2023 18:04:46 +0800 Subject: [PATCH] Chore: debug level log --- tunnel/tcp.go | 2 +- tunnel/udp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tunnel/tcp.go b/tunnel/tcp.go index b641d21..e540cb1 100644 --- a/tunnel/tcp.go +++ b/tunnel/tcp.go @@ -44,7 +44,7 @@ func handleTCPConn(localConn adapter.TCPConn) { log.Infof("[TCP] %s <-> %s", metadata.SourceAddress(), metadata.DestinationAddress()) if err = relay(localConn, targetConn); err != nil { - log.Warnf("[TCP] %s <-> %s: %v", metadata.SourceAddress(), metadata.DestinationAddress(), err) + log.Debugf("[TCP] %s <-> %s: %v", metadata.SourceAddress(), metadata.DestinationAddress(), err) } } diff --git a/tunnel/udp.go b/tunnel/udp.go index d7974f9..1672de8 100644 --- a/tunnel/udp.go +++ b/tunnel/udp.go @@ -55,7 +55,7 @@ func handleUDPConn(uc adapter.UDPConn) { log.Infof("[UDP] %s <-> %s", metadata.SourceAddress(), metadata.DestinationAddress()) if err = relayPacket(uc, pc, remote); err != nil { - log.Warnf("[TCP] %s <-> %s: %v", metadata.SourceAddress(), metadata.DestinationAddress(), err) + log.Debugf("[TCP] %s <-> %s: %v", metadata.SourceAddress(), metadata.DestinationAddress(), err) } }