tun2: only log failure chance if it's nonzero
This commit is contained in:
parent
b1161e35f4
commit
581420b768
|
@ -165,11 +165,13 @@ func (s *Server) ListenAndServe() error {
|
|||
for _, c := range s.conns {
|
||||
failureChance := c.detector.Phi(now)
|
||||
|
||||
if failureChance != 0 {
|
||||
ln.Log(c.F(), ln.F{
|
||||
"action": "phi_failure_detection",
|
||||
"value": failureChance,
|
||||
})
|
||||
}
|
||||
}
|
||||
s.connlock.Unlock()
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue