Browse Source

Chore: debug level log

pull/156/head
xjasonlyu 2 years ago
parent
commit
1e99f2d580
  1. 2
      tunnel/tcp.go
  2. 2
      tunnel/udp.go

2
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)
}
}

2
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)
}
}

Loading…
Cancel
Save