feat: add debug logging for prune search
1 file changed, 3 insertions(+), 0 deletions(-)
changed files
M internal/importer/main.go → internal/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) }