refactor: remove log prefix
Alan Pearce alan@alanpearce.eu
Wed, 15 May 2024 18:46:20 +0200
1 files changed, 2 insertions(+), 3 deletions(-)
jump to
M searchix.go → searchix.go
@@ -60,11 +60,10 @@ log.Panicf("error parsing configuration file: %v", err) } slog.SetLogLoggerLevel(conf.LogLevel) if conf.Web.Environment == "production" { - log.SetFlags(log.Lmsgprefix) + log.SetFlags(0) } else { - log.SetFlags(log.LstdFlags | log.Lmsgprefix) + log.SetFlags(log.LstdFlags) } - log.SetPrefix("searchix: ") read, write, exists, err := index.OpenOrCreate(conf.DataPath, *replace) if err != nil {