diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 57ef639..f3cea7f 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -165,10 +165,12 @@ func (s *Server) ListenAndServe() error { for _, c := range s.conns { failureChance := c.detector.Phi(now) - ln.Log(c.F(), ln.F{ - "action": "phi_failure_detection", - "value": failureChance, - }) + if failureChance != 0 { + ln.Log(c.F(), ln.F{ + "action": "phi_failure_detection", + "value": failureChance, + }) + } } s.connlock.Unlock() }