about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-19 15:42:36 +0200
committerAlan Pearce2024-05-19 15:53:32 +0200
commit09ee2de72936ea0b0edc5d3360ce1c72803a817b (patch)
tree427a590fba06e58554586aad8995fcb6e7a559f3 /internal/config/config.go
parent4064f933a965f2fb2ce43d3c2d5bd54ccd33978c (diff)
downloadwebsite-09ee2de72936ea0b0edc5d3360ce1c72803a817b.tar.lz
website-09ee2de72936ea0b0edc5d3360ce1c72803a817b.tar.zst
website-09ee2de72936ea0b0edc5d3360ce1c72803a817b.zip
log in logfmt via zap, with nicer console output in dev
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 47422e7..063f549 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -2,8 +2,8 @@ package config
 
 import (
 	"io/fs"
-	"log/slog"
 	"net/url"
+	"website/internal/log"
 
 	"github.com/BurntSushi/toml"
 	"github.com/pkg/errors"
@@ -47,7 +47,7 @@ type Config struct {
 
 func GetConfig() (*Config, error) {
 	config := Config{}
-	slog.Debug("reading config.toml")
+	log.Debug("reading config.toml")
 	_, err := toml.DecodeFile("config.toml", &config)
 	if err != nil {
 		var pathError *fs.PathError