all repos — searchix @ 56406890b7ff3cd05cada498456110b72777ccd0

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor(importer): add context and reduce log level

Alan Pearce
commit

56406890b7ff3cd05cada498456110b72777ccd0

parent

37afa6ce04434b81fcb242f1160938f1cddbde1e

1 file changed, 4 insertions(+), 4 deletions(-)

jump to
M internal/importer/importer.gointernal/importer/importer.go
@@ -78,7 +78,7 @@ case err, running := <-iErrs:
if !running { wg.Done() iErrs = nil - slog.Info("ingest completed") + conf.Logger.Info("ingest completed") continue }
@@ -88,7 +88,7 @@ case err, running := <-pErrs:
if !running { wg.Done() pErrs = nil - slog.Info("processing completed") + conf.Logger.Debug("processing completed") continue }
@@ -98,9 +98,9 @@ }
} }() - slog.Debug("options processing", "state", "waiting") + conf.Logger.Debug("options processing", "state", "waiting") wg.Wait() - slog.Debug("options processing", "state", "complete") + conf.Logger.Debug("options processing", "state", "complete") return hadErrors, nil }