refactor: clarify log message when starting import
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 22:19:35 +0200
1 files changed, 9 insertions(+), 1 deletions(-)
jump to
M searchix.go → searchix.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)