From 4a772db0f83e7069d7a7d887c66b5b1aea045465 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 24 Oct 2024 07:31:34 +0200 Subject: [PATCH] fix: update log level for missing config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - change error log to warning for better severity indication - update default usage log to warning for consistency 🤖 --- internal/helper/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/helper/config.go b/internal/helper/config.go index 8e192e2..197ffd1 100644 --- a/internal/helper/config.go +++ b/internal/helper/config.go @@ -17,8 +17,8 @@ func ParseConfig(filename string) models.ConfigFile { } yamlFile, err := os.ReadFile(filename) if err != nil { - log.Error("Error opening config file!", "reason", err) - log.Info("Using defaults") + log.Warn("Error opening config file!", "reason", err) + log.Warn("Using defaults") return models.ConfigFile{ URL: "ws://localhost:8080/ws", }