From 56406890b7ff3cd05cada498456110b72777ccd0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 May 2024 17:23:22 +0200 Subject: refactor(importer): add context and reduce log level --- internal/importer/importer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/importer/importer.go') diff --git a/internal/importer/importer.go b/internal/importer/importer.go index a242481..b66b6d3 100644 --- a/internal/importer/importer.go +++ b/internal/importer/importer.go @@ -78,7 +78,7 @@ func processOptions( if !running { wg.Done() iErrs = nil - slog.Info("ingest completed") + conf.Logger.Info("ingest completed") continue } @@ -88,7 +88,7 @@ func processOptions( if !running { wg.Done() pErrs = nil - slog.Info("processing completed") + conf.Logger.Debug("processing completed") continue } @@ -98,9 +98,9 @@ func processOptions( } }() - 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 } -- cgit 1.4.1