Log the current candidate's RTT

This commit is contained in:
Frank Denis 2019-06-03 17:32:23 +02:00
parent 62e8d193c0
commit 36e3691ccc
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ func (serversInfo *ServersInfo) getOne() *ServerInfo {
candidate = rand.Intn(Min(serversCount, 2))
}
serverInfo := serversInfo.inner[candidate]
dlog.Debugf("Using candidate %v: [%v]", candidate, (*serverInfo).Name)
dlog.Debugf("Using candidate [%s] rtt: %d", (*serverInfo).Name, int((*serverInfo).rtt.Value()))
return serverInfo
}