fix: update log level for missing config file

- change error log to warning for better severity indication
- update default usage log to warning for consistency

🤖
This commit is contained in:
Sebastian Mark 2024-10-24 07:31:34 +02:00
parent 57871afa68
commit 4a772db0f8

View file

@ -17,8 +17,8 @@ func ParseConfig(filename string) models.ConfigFile {
} }
yamlFile, err := os.ReadFile(filename) yamlFile, err := os.ReadFile(filename)
if err != nil { if err != nil {
log.Error("Error opening config file!", "reason", err) log.Warn("Error opening config file!", "reason", err)
log.Info("Using defaults") log.Warn("Using defaults")
return models.ConfigFile{ return models.ConfigFile{
URL: "ws://localhost:8080/ws", URL: "ws://localhost:8080/ws",
} }