From 8805c25adece20e4bee90faf0052804a3bfbab32 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 17 May 2024 16:23:42 +0200 Subject: refactor: reduce debug logging --- internal/importer/importer.go | 2 -- internal/importer/options.go | 1 - internal/importer/package.go | 2 -- 3 files changed, 5 deletions(-) (limited to 'internal') diff --git a/internal/importer/importer.go b/internal/importer/importer.go index 57118c8..53a87c9 100644 --- a/internal/importer/importer.go +++ b/internal/importer/importer.go @@ -58,9 +58,7 @@ func process( } }() - logger.Debug("object processing", "state", "waiting") wg.Wait() - logger.Debug("object processing", "state", "complete") return hadErrors } diff --git a/internal/importer/options.go b/internal/importer/options.go index 0aadc50..1247681 100644 --- a/internal/importer/options.go +++ b/internal/importer/options.go @@ -98,7 +98,6 @@ func (i *OptionIngester) Process(parent context.Context) (<-chan nix.Importable, defer close(errs) defer cancel() - slog.Debug("starting decoder stream") outer: for mv := range i.dec.Stream() { select { diff --git a/internal/importer/package.go b/internal/importer/package.go index a1a6c67..4e006cb 100644 --- a/internal/importer/package.go +++ b/internal/importer/package.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "io" - "log/slog" "reflect" "searchix/internal/config" "searchix/internal/nix" @@ -117,7 +116,6 @@ func (i *PackageIngester) Process(parent context.Context) (<-chan nix.Importable defer cancel() userRepo := i.source.Repo.Owner + "/" + i.source.Repo.Repo - slog.Debug("starting decoder stream") outer: for mv := range i.dec.Stream() { var err error -- cgit 1.4.1