From 32b97fce7bf2343162bef1c7dd355410010c393b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 15 May 2024 18:46:20 +0200 Subject: refactor: remove log prefix --- searchix.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'searchix.go') diff --git a/searchix.go b/searchix.go index 79940e9..79da0e7 100644 --- a/searchix.go +++ b/searchix.go @@ -60,11 +60,10 @@ func main() { } 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 { -- cgit 1.4.1