From 8939db739fda8cfdf132fdffb147d16228ae96e1 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Wed, 6 Nov 2024 01:36:10 -0300 Subject: [PATCH] log: drop PING messages log level The PING, PONG, and STREAM packets happen very frequently, causing a lot of noise on debug logs. Signed-off-by: Luiz Aoqui --- async.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/async.go b/async.go index 2063b7a..0d5eb7a 100644 --- a/async.go +++ b/async.go @@ -521,7 +521,7 @@ func (c *Async) readLoop() { switch p.Metadata.Operation { case PING: - c.Logger().Debug().Msg("PING Packet received by read loop, sending back PONG packet") + c.Logger().Trace().Msg("PING Packet received by read loop, sending back PONG packet") err = c.writePacket(PONGPacket, false) if err != nil { c.wg.Done() @@ -530,10 +530,10 @@ func (c *Async) readLoop() { } packet.Put(p) case PONG: - c.Logger().Debug().Msg("PONG Packet received by read loop") + c.Logger().Trace().Msg("PONG Packet received by read loop") packet.Put(p) case STREAM: - c.Logger().Debug().Msg("STREAM Packet received by read loop") + c.Logger().Trace().Msg("STREAM Packet received by read loop") isStream = true c.newStreamHandlerMu.Lock() newStreamHandler = c.newStreamHandler