refactor: complete conversion of log calls to slog (#787)

This commit is contained in:
Alessandro (Ale) Segala
2025-07-27 06:34:23 +02:00
committed by GitHub
parent 78266e3e4c
commit 42a861d206
22 changed files with 142 additions and 88 deletions

View File

@@ -3,8 +3,9 @@ package common
import (
"errors"
"fmt"
"log"
"log/slog"
"net/url"
"os"
"github.com/caarlos0/env/v11"
_ "github.com/joho/godotenv/autoload"
@@ -57,7 +58,8 @@ var EnvConfig = defaultConfig()
func init() {
err := parseEnvConfig()
if err != nil {
log.Fatalf("Configuration error: %v", err)
slog.Error("Configuration error", slog.Any("error", err))
os.Exit(1)
}
}