Skip to content

Commit 9736bdd

Browse files
StephaneBrillantAndre Branchizio
authored andcommitted
[Fix] Replace unsupported %v macro in logs (thanos-io#3847)
Signed-off-by: Stéphane Brillant <stephane.brillant@jive.com>
1 parent f8ff622 commit 9736bdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/thanos/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ func removeDuplicateStoreSpecs(logger log.Logger, duplicatedStores prometheus.Co
556556
for _, spec := range specs {
557557
addr := spec.Addr()
558558
if _, ok := set[addr]; ok {
559-
level.Warn(logger).Log("msg", "Duplicate store address is provided - %v", addr)
559+
level.Warn(logger).Log("msg", "Duplicate store address is provided", "addr", addr)
560560
duplicatedStores.Inc()
561561
}
562562
set[addr] = spec

cmd/thanos/rule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ func removeDuplicateQueryEndpoints(logger log.Logger, duplicatedQueriers prometh
721721
deduplicated := make([]*url.URL, 0, len(urls))
722722
for _, u := range urls {
723723
if _, ok := set[u.String()]; ok {
724-
level.Warn(logger).Log("msg", "duplicate query address is provided - %v", u.String())
724+
level.Warn(logger).Log("msg", "duplicate query address is provided", "addr", u.String())
725725
duplicatedQueriers.Inc()
726726
continue
727727
}

0 commit comments

Comments
 (0)