fix vpn notification, add more logs under debug flag
This commit is contained in:
1 parent
d66be97922
commit
2dbc6ea1eb
17 files changed
+90
-27
No files matched your search
@@ -198,7 +198,7 @@ func (t *VP8LegacyTunnel) writerLoop() {
|
||||
continue
|
||||
}
|
||||
n := t.sentFrames.Add(1)
|
||||
if n <= 5 || n%500 == 0 {
|
||||
if common.Debug && (n <= 5 || n%500 == 0) {
|
||||
t.logFn("vp8tunnel-legacy: sent frame #%d size=%d", n, len(sample))
|
||||
}
|
||||
}
|
||||
@@ -232,7 +232,7 @@ func (t *VP8LegacyTunnel) HandleFrame(frame []byte) {
|
||||
return
|
||||
}
|
||||
n := t.recvFrames.Add(1)
|
||||
if n <= 5 || n%500 == 0 {
|
||||
if common.Debug && (n <= 5 || n%500 == 0) {
|
||||
t.logFn("vp8tunnel-legacy: recv frame #%d size=%d", n, len(payload))
|
||||
}
|
||||
if t.OnData != nil {
|
||||
|
||||
Reference in new issue
Block a user