From 570ad1e2ec6e878f1fce25381ff4e9001c9af53d Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 15 Nov 2024 16:40:54 -0800 Subject: [PATCH] Remove redundant logging --- config.go | 1 - main.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config.go b/config.go index 610ff50..554dd6a 100644 --- a/config.go +++ b/config.go @@ -130,7 +130,6 @@ func LoadConfig(filePath string) (Config, error) { var config Config if err := hclsimple.DecodeFile(filePath, nil, &config); err != nil { - slog.Debugf("Failed to load config from %s: %v", filePath, err) return config, errors.Join(ErrLoadingConfig, err) } diff --git a/main.go b/main.go index 3f558b2..fbb7674 100644 --- a/main.go +++ b/main.go @@ -136,7 +136,7 @@ func main() { // Load configuration config, err := LoadConfig(*configPath) - slog.OnErrFatalf(err, "Error loading config: %v", err) + slog.OnErrFatalf(err, "Error loading config") // Serve metrics exporter, if specified if ExportMetrics {