From 0f00e6f2986aa5ba6043265bd9a39353bfead153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Leszczy=C5=84ski?= <2000michal@wp.pl> Date: Tue, 7 Jan 2025 13:05:42 +0100 Subject: [PATCH] refactor(scyllaclient): reduce info to debug on closest DC 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. --- pkg/scyllaclient/client_ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scyllaclient/client_ping.go b/pkg/scyllaclient/client_ping.go index c547fb17d..d29fafeec 100644 --- a/pkg/scyllaclient/client_ping.go +++ b/pkg/scyllaclient/client_ping.go @@ -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")