Skip to content

Commit

Permalink
Merge pull request #183 from loopholelabs/drop-ping-log-level
Browse files Browse the repository at this point in the history
log: drop PING messages log level
  • Loading branch information
SuperManifolds authored Nov 7, 2024
2 parents c9dd8f4 + 8939db7 commit dedddbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions async.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit dedddbd

Please sign in to comment.