about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorAlan Pearce2024-04-16 20:33:57 +0200
committerAlan Pearce2024-04-16 20:50:24 +0200
commitf628605bcd0c3f7fbd45a09bfebe4c7b44bc743a (patch)
treefa55d0bd681a2830acbfccad6571c30e5e59755c /internal/config/config.go
parent00557c355c12458e65ae5cd9e0fa5ebfba229b3a (diff)
downloadwebsite-f628605bcd0c3f7fbd45a09bfebe4c7b44bc743a.tar.lz
website-f628605bcd0c3f7fbd45a09bfebe4c7b44bc743a.tar.zst
website-f628605bcd0c3f7fbd45a09bfebe4c7b44bc743a.zip
add debug logging
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go2
1 files changed, 2 insertions, 0 deletions
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