all repos — searchix @ 3149660f0fcbad484a71703cf2f7f715abc130ba

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

refactor: clarify log message when starting import
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 22:19:35 +0200
commit

3149660f0fcbad484a71703cf2f7f715abc130ba

parent

e69d78542a4ec92da5931b3db105b14a39a4c964

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M searchix.gosearchix.go
@@ -113,7 +113,15 @@ log.Fatalf("Failed to open or create index: %v", err) 	}
 
 	if !exists || *replace || *update {
-		slog.Info("Index doesn't exist. Starting build job...")
+		slog.Info(
+			"Starting build job",
+			"new",
+			!exists,
+			"replace",
+			*replace,
+			"update",
+			*update,
+		)
 		err = importer.Start(cfg, write, *replace, nil)
 		if err != nil {
 			log.Fatalf("Failed to build index: %v", err)