diff options
author | Alan Pearce | 2024-05-22 22:19:35 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-22 22:19:35 +0200 |
commit | 3149660f0fcbad484a71703cf2f7f715abc130ba (patch) | |
tree | 843719f2203d36beadeb2cb7b46db67450b00a1a /searchix.go | |
parent | e69d78542a4ec92da5931b3db105b14a39a4c964 (diff) | |
download | searchix-3149660f0fcbad484a71703cf2f7f715abc130ba.tar.lz searchix-3149660f0fcbad484a71703cf2f7f715abc130ba.tar.zst searchix-3149660f0fcbad484a71703cf2f7f715abc130ba.zip |
refactor: clarify log message when starting import
Diffstat (limited to 'searchix.go')
-rw-r--r-- | searchix.go | 10 |
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) |