Promote decrypt/protobuf logs from Debug to Info level
Decrypt success, ping responses, unknown message types, and empty-opus packets now log at Info instead of Debug so they're visible without --log=debug.
This commit is contained in:
committed by
Brandon McGinty
parent
81347893d7
commit
e6806a7521
@@ -545,7 +545,7 @@ func (c *Client) HandleUDPPacket15(packet []byte, pktNum uint64) {
|
||||
return
|
||||
}
|
||||
|
||||
log.Debug("UDP15 #%d: decrypt OK, plaintext_len=%d", pktNum, len(plaintext))
|
||||
log.Info("UDP15 #%d: decrypt OK, plaintext_len=%d", pktNum, len(plaintext))
|
||||
|
||||
// Check type byte (0x00 = Audio, 0x01 = Ping)
|
||||
if len(plaintext) < 1 {
|
||||
@@ -556,11 +556,11 @@ func (c *Client) HandleUDPPacket15(packet []byte, pktNum uint64) {
|
||||
|
||||
if msgType == 0x01 {
|
||||
// Ping response — just a timestamp, no action needed.
|
||||
log.Debug("UDP15 #%d: ping response", pktNum)
|
||||
log.Info("UDP15 #%d: ping response, ignoring", pktNum)
|
||||
return
|
||||
}
|
||||
if msgType != 0x00 {
|
||||
log.Debug("UDP15 #%d: unknown message type 0x%02x", pktNum, msgType)
|
||||
log.Warn("UDP15 #%d: unknown message type 0x%02x", pktNum, msgType)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -568,6 +568,7 @@ func (c *Client) HandleUDPPacket15(packet []byte, pktNum uint64) {
|
||||
session, frameNum, opusData, terminator := decodeUDPAudio(plaintext)
|
||||
|
||||
if len(opusData) == 0 && !terminator {
|
||||
log.Info("UDP15 #%d: no opus data (session=%d frame=%d), skipping", pktNum, session, frameNum)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user