refactor: log index loading progress at startup
Alan Pearce alan@alanpearce.eu
Wed, 08 May 2024 13:36:11 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M internal/server/server.go → internal/server/server.go
@@ -87,8 +87,9 @@ } 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) }