all repos — homestead @ ddfff9a3b5d7f92464c47636bcb4145327e98744

Code for my website

add debug logging

Alan Pearce
commit

ddfff9a3b5d7f92464c47636bcb4145327e98744

parent

4fb7621a251694415ad5e613684577e5dc6f44be

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