Skip to content

Commit

Permalink
Use formatting print to show underlying error message
Browse files Browse the repository at this point in the history
This appears to be a typo where "Println" was used instead of "Printf"
  • Loading branch information
kruton authored Sep 19, 2024
1 parent 9c6f881 commit 14dafe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 14dafe3

Please sign in to comment.