From cd848543b34f713dfdbb887d4f742136a23b014c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Tue, 21 Feb 2023 14:00:21 +0100 Subject: [PATCH] Slightly improve logging --- main.go | 4 ++-- silence.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index b96d1f0..b23aa21 100644 --- a/main.go +++ b/main.go @@ -386,11 +386,11 @@ func main() { cfg, err := readConfig(configPath) if err != nil { - logger.Fatalf("config: %v", err) + logger.Fatalf("Failed to read config: %v", err) } if err := logger.SetLevelFromString(cfg.LogLevel); err != nil { - logger.Errorf("config: %v", err) + logger.Errorf("Failed to parse logging level: %v", err) } client := &httpClient{&http.Client{Timeout: time.Second * 3}} diff --git a/silence.go b/silence.go index 553a22c..78d0951 100644 --- a/silence.go +++ b/silence.go @@ -133,5 +133,5 @@ func (br *bridge) handleSilences(w http.ResponseWriter, r *http.Request) { return } - br.logger.Debugf("silences: created new silence %s", id.ID) + br.logger.Infof("Created new silence %s", id.ID) }