all repos — homestead @ 5d9c9686873144c01604e57b5710ab8d921dcbac

Code for my website

log in logfmt via zap, with nicer console output in dev

Alan Pearce
commit

5d9c9686873144c01604e57b5710ab8d921dcbac

parent

09c04603a0eb92bdb811dd7f7d5f130d35fa0adf

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

changed files
M internal/config/config.gointernal/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 @@ }
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