about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-14 17:24:01 +0200
committerAlan Pearce2024-05-14 17:24:01 +0200
commit5f9c7ef00b1ed56fb1abbade4d5dbc3041acd4fc (patch)
tree629735e0da55fd1033432da579e7a0769e095e2f
parent56406890b7ff3cd05cada498456110b72777ccd0 (diff)
downloadsearchix-5f9c7ef00b1ed56fb1abbade4d5dbc3041acd4fc.tar.lz
searchix-5f9c7ef00b1ed56fb1abbade4d5dbc3041acd4fc.tar.zst
searchix-5f9c7ef00b1ed56fb1abbade4d5dbc3041acd4fc.zip
feat: log on startup if index doesn't exist
-rw-r--r--searchix.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchix.go b/searchix.go
index 4a511bf..1cdae70 100644
--- a/searchix.go
+++ b/searchix.go
@@ -64,6 +64,7 @@ func main() {
 	}
 
 	if !exists {
+		slog.Info("Index doesn't exist. Starting build job...")
 		err = importer.Start(conf, write, *replace)
 		if err != nil {
 			log.Fatalf("Failed to build index: %v", err)