Update logging

This commit is contained in:
Owen
2026-03-20 16:11:10 -07:00
parent 3af64d8bd3
commit 40da38708c

View File

@@ -309,7 +309,7 @@ func (s *UDPProxyServer) packetWorker() {
allowed := rlEntry.count <= 2 allowed := rlEntry.count <= 2
rlEntry.mu.Unlock() rlEntry.mu.Unlock()
if !allowed { if !allowed {
logger.Debug("Rate limiting hole punch message from %s", rateLimitKey) // logger.Debug("Rate limiting hole punch message from %s", rateLimitKey)
bufferPool.Put(packet.data[:1500]) bufferPool.Put(packet.data[:1500])
continue continue
} }
@@ -333,7 +333,7 @@ func (s *UDPProxyServer) packetWorker() {
// This appears to be an encrypted message // This appears to be an encrypted message
decryptedData, err := s.decryptMessage(encMsg) decryptedData, err := s.decryptMessage(encMsg)
if err != nil { if err != nil {
logger.Error("Failed to decrypt message: %v", err) // logger.Error("Failed to decrypt message: %v", err)
// Return the buffer to the pool for reuse and continue with next packet // Return the buffer to the pool for reuse and continue with next packet
bufferPool.Put(packet.data[:1500]) bufferPool.Put(packet.data[:1500])
continue continue