about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-22 22:19:35 +0200
committerAlan Pearce2024-05-22 22:19:35 +0200
commit3149660f0fcbad484a71703cf2f7f715abc130ba (patch)
tree843719f2203d36beadeb2cb7b46db67450b00a1a
parente69d78542a4ec92da5931b3db105b14a39a4c964 (diff)
downloadsearchix-3149660f0fcbad484a71703cf2f7f715abc130ba.tar.lz
searchix-3149660f0fcbad484a71703cf2f7f715abc130ba.tar.zst
searchix-3149660f0fcbad484a71703cf2f7f715abc130ba.zip
refactor: clarify log message when starting import
-rw-r--r--searchix.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/searchix.go b/searchix.go
index e672bbf..cf1a429 100644
--- a/searchix.go
+++ b/searchix.go
@@ -113,7 +113,15 @@ func main() {
 	}
 
 	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)