all repos — searchix @ 3348e3f8f5d151d8a81da8f2b9540c8dd0d1184e

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

feat: add debug logging for prune search

Alan Pearce
commit

3348e3f8f5d151d8a81da8f2b9540c8dd0d1184e

parent

fce18f928e4f085875ee714a8bb0549388d6e693

1 file changed, 3 insertions(+), 0 deletions(-)

changed files
M internal/importer/main.gointernal/importer/main.go
@@ -204,9 +204,12 @@ return fault.Wrap(err, fmsg.With("failed to retrieve entities for pruning"))
} if res.Total == 0 { + imp.options.Logger.Debug("no old entities found") + return nil } + imp.options.Logger.Debug("found old entities", "count", res.Total) if float64(res.Total) > (0.9 * float64(maxCount)) { return fault.Newf("too many entities to prune: %d/%d (threshold: 90%%)", res.Total, maxCount) }