From 3149660f0fcbad484a71703cf2f7f715abc130ba Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 22 May 2024 22:19:35 +0200 Subject: refactor: clarify log message when starting import --- searchix.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) -- cgit 1.4.1