From f628605bcd0c3f7fbd45a09bfebe4c7b44bc743a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 16 Apr 2024 20:33:57 +0200 Subject: add debug logging --- internal/config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal') diff --git a/internal/config/config.go b/internal/config/config.go index 12b9395..20fe21e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -2,6 +2,7 @@ package config import ( "io/fs" + "log/slog" "github.com/BurntSushi/toml" "github.com/pkg/errors" @@ -35,6 +36,7 @@ type Config struct { func GetConfig() (*Config, error) { config := Config{} + slog.Debug("reading config.toml") _, err := toml.DecodeFile("config.toml", &config) if err != nil { var pathError *fs.PathError -- cgit 1.4.1