Skip to content

Commit a830f37

Browse files
committed
Standardize logging
1 parent 5b5a485 commit a830f37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proxy/pkg/zdmproxy/controlconn.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,13 @@ func (cc *ControlConn) RefreshHosts(conn CqlConnection, ctx context.Context) ([]
481481
peersListLocalHost, peersListContainsLocalHost := hostsById[localHost.HostId]
482482
if cc.preferIpFromSystemLocal {
483483
if peersListContainsLocalHost {
484-
log.Warnf("Local host is also on the peers list: %v vs %v, ignoring the former one.", peersListLocalHost, localHost)
484+
log.Warnf("Local host is also on the peers list, local host will be used as the source of truth: %v vs %v, ignoring the former one.", peersListLocalHost, localHost)
485485
}
486486
hostsById[localHost.HostId] = localHost
487487
} else if peersListContainsLocalHost {
488-
log.Infof("Local host is on the peers list aswell, the peers list will be used as the source of truth: %v vs %v, ignoring the latter one.", peersListLocalHost, localHost)
488+
log.Warnf("Local host is also on the peers list, the peers list will be used as the source of truth: %v vs %v, ignoring the latter one.", peersListLocalHost, localHost)
489489
} else {
490-
log.Warnf("Local host is not on the peers list, it will be added: %v.", localHost)
490+
log.Tracef("Local host is not on the peers list, it will be added: %v.", localHost)
491491
hostsById[localHost.HostId] = localHost
492492
}
493493

0 commit comments

Comments
 (0)