Reduce logspam from node with no peers
Signed-off-by: Wendi Yu <wendi.yu@yahoo.ca>reviewable/pr380/r1
parent
cd01bcc395
commit
3663797815
|
@ -567,7 +567,9 @@ func (b *LocalBackend) parseWgStatus(s *wgengine.Status) EngineStatus {
|
||||||
rx += p.RxBytes
|
rx += p.RxBytes
|
||||||
tx += p.TxBytes
|
tx += p.TxBytes
|
||||||
}
|
}
|
||||||
|
if len(ss) != 0 {
|
||||||
b.logf("v%v peers: %v", version.LONG, strings.Join(ss, " "))
|
b.logf("v%v peers: %v", version.LONG, strings.Join(ss, " "))
|
||||||
|
}
|
||||||
return EngineStatus{
|
return EngineStatus{
|
||||||
RBytes: rx,
|
RBytes: rx,
|
||||||
WBytes: tx,
|
WBytes: tx,
|
||||||
|
|
Loading…
Reference in New Issue