fix vpn notification, add more logs under debug flag

This commit is contained in:
kulikov0 committed 2026-07-25 12:23:41 +02:00
1 parent d66be97922
commit 2dbc6ea1eb
17 files changed
+90 -27

No files matched your search

+1 -1
View File
@@ -217,7 +217,7 @@ func ReadTrack(track *webrtc.TrackRemote, handler func([]byte), logFn func(strin
continue
}
recvCount++
if recvCount <= 3 || recvCount%200 == 0 {
if common.Debug && (recvCount <= 3 || recvCount%200 == 0) {
logFn("%s: recv vp8 frame #%d %d bytes", prefix, recvCount, len(frameBuf))
}
if handler != nil {