From 6ded3039be7d257fbe109d1f9e5177a162905db5 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 18 Sep 2024 23:32:15 -0700 Subject: [PATCH] Use formatting print to show underlying error message This appears to be a typo where "Println" was used instead of "Printf" Signed-off-by: Kenny Root --- collector/collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/collector.go b/collector/collector.go index 70be7752..f278f33c 100644 --- a/collector/collector.go +++ b/collector/collector.go @@ -442,7 +442,7 @@ func fetchRemoteConfig(url string) (*Config, error) { if !HasValidHeader(string(body)) { // TODO: Print a warning when we implement proper logging - fmt.Println("No valid header in remote config: %w", err) + fmt.Printf("No valid header in remote config: %w", err) return result, nil }