all repos — searchix @ 8805c25adece20e4bee90faf0052804a3bfbab32

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

refactor: reduce debug logging
Alan Pearce alan@alanpearce.eu
Fri, 17 May 2024 16:23:42 +0200
commit

8805c25adece20e4bee90faf0052804a3bfbab32

parent

d7f1d22c7b2345399fe87715aee53043563eb06c

M internal/importer/importer.gointernal/importer/importer.go
@@ -58,9 +58,7 @@ } 		}
 	}()
 
-	logger.Debug("object processing", "state", "waiting")
 	wg.Wait()
-	logger.Debug("object processing", "state", "complete")
 
 	return hadErrors
 }
M internal/importer/options.gointernal/importer/options.go
@@ -98,7 +98,6 @@ defer close(results) 		defer close(errs)
 		defer cancel()
 
-		slog.Debug("starting decoder stream")
 	outer:
 		for mv := range i.dec.Stream() {
 			select {
M internal/importer/package.gointernal/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 @@ defer close(errs) 		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