all repos — searchix @ 32b97fce7bf2343162bef1c7dd355410010c393b

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: remove log prefix
Alan Pearce alan@alanpearce.eu
Wed, 15 May 2024 18:46:20 +0200
commit

32b97fce7bf2343162bef1c7dd355410010c393b

parent

10f14a7130276b7ae895eaa569d3c69d6d9cd367

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M searchix.gosearchix.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 {