diff options
author | Alan Pearce | 2024-05-15 18:46:20 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-15 18:46:20 +0200 |
commit | 32b97fce7bf2343162bef1c7dd355410010c393b (patch) | |
tree | f3690194dba1f9d4e86f6b6790c1d48df4a71a75 | |
parent | 10f14a7130276b7ae895eaa569d3c69d6d9cd367 (diff) | |
download | searchix-32b97fce7bf2343162bef1c7dd355410010c393b.tar.lz searchix-32b97fce7bf2343162bef1c7dd355410010c393b.tar.zst searchix-32b97fce7bf2343162bef1c7dd355410010c393b.zip |
refactor: remove log prefix
-rw-r--r-- | searchix.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 { |