diff options
Diffstat (limited to 'searchix.go')
-rw-r--r-- | searchix.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/searchix.go b/searchix.go index 9a0b16e..4a511bf 100644 --- a/searchix.go +++ b/searchix.go @@ -51,7 +51,11 @@ func main() { log.Panicf("error parsing configuration file: %v", err) } slog.SetLogLoggerLevel(conf.LogLevel) - log.SetFlags(log.LstdFlags | log.Lmsgprefix) + if conf.Web.Environment == "production" { + log.SetFlags(log.Lmsgprefix) + } else { + log.SetFlags(log.LstdFlags | log.Lmsgprefix) + } log.SetPrefix("searchix: ") read, write, exists, err := index.OpenOrCreate(conf.DataPath, *replace) |