all repos — website @ f628605bcd0c3f7fbd45a09bfebe4c7b44bc743a

My website

add debug logging

Alan Pearce
commit

f628605bcd0c3f7fbd45a09bfebe4c7b44bc743a

parent

00557c355c12458e65ae5cd9e0fa5ebfba229b3a

1 file changed, 2 insertions(+), 0 deletions(-)

changed files
M internal/config/config.gointernal/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 @@ }
func GetConfig() (*Config, error) { config := Config{} + slog.Debug("reading config.toml") _, err := toml.DecodeFile("config.toml", &config) if err != nil { var pathError *fs.PathError