Skip to content

Commit

Permalink
Standardize logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mini-ninja-64 committed Dec 23, 2024
1 parent 5b5a485 commit a830f37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy/pkg/zdmproxy/controlconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@ func (cc *ControlConn) RefreshHosts(conn CqlConnection, ctx context.Context) ([]
peersListLocalHost, peersListContainsLocalHost := hostsById[localHost.HostId]
if cc.preferIpFromSystemLocal {
if peersListContainsLocalHost {
log.Warnf("Local host is also on the peers list: %v vs %v, ignoring the former one.", peersListLocalHost, localHost)
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)
}
hostsById[localHost.HostId] = localHost
} else if peersListContainsLocalHost {
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)
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)
} else {
log.Warnf("Local host is not on the peers list, it will be added: %v.", localHost)
log.Tracef("Local host is not on the peers list, it will be added: %v.", localHost)
hostsById[localHost.HostId] = localHost
}

Expand Down

0 comments on commit a830f37

Please sign in to comment.