From 439f863b71a698053ee0cd3c7a9865c286be3ec7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 8 May 2024 13:36:11 +0200 Subject: refactor: log index loading progress at startup --- internal/server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/server') diff --git a/internal/server/server.go b/internal/server/server.go index db40e6f..b794f05 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -87,8 +87,9 @@ var sourceFileName = map[string]string{ func makeIndex(source string, filename string) { var err error - log.Printf("loading %s index", source) + slog.Info("loading index", "index", source) index[source], err = search.New(filename) + slog.Info("loaded index", "index", source) if err != nil { log.Fatalf("could not build search index, error: %#v", err) } -- cgit 1.4.1