Skip to content

Commit

Permalink
refactor(scyllaclient): reduce info to debug on closest DC
Browse files Browse the repository at this point in the history
This log does not contain any useful information, but it clogs
the log files since checking for closest DC is done during
every fresh scyllaclient creation, which is done by the
config cache service every minute.
  • Loading branch information
Michal-Leszczynski committed Jan 7, 2025
1 parent ef3b968 commit 0f00e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scyllaclient/client_ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *Client) CheckHostsConnectivity(ctx context.Context, hosts []string) []e
// the lowest latency over 3 Ping() invocations across random selection of
// hosts for each DC.
func (c *Client) ClosestDC(ctx context.Context, dcs map[string][]string) ([]string, error) {
c.logger.Info(ctx, "Measuring datacenter latencies", "dcs", extractKeys(dcs))
c.logger.Debug(ctx, "Measuring datacenter latencies", "dcs", extractKeys(dcs))

if len(dcs) == 0 {
return nil, errors.Errorf("no dcs to choose from")
Expand Down

0 comments on commit 0f00e6f

Please sign in to comment.