diff --git a/internal/cmd/run.go b/internal/cmd/run.go index bb25a54..164d11f 100644 --- a/internal/cmd/run.go +++ b/internal/cmd/run.go @@ -90,6 +90,7 @@ func executeData(ctx context.Context, input, output interfaces.DumpIO) error { err error lines []*interfaces.ESSource succeed int + total int ) for { @@ -114,7 +115,9 @@ func executeData(ctx context.Context, input, output interfaces.DumpIO) error { return fmt.Errorf("cmd.run: got lines=%d, only succeed=%d", len(lines), succeed) } - logrus.Infof("Dump: %d docs succeed!!!", succeed) + total += succeed + + logrus.Infof("Dump: succeed=%d total=%d docs succeed!!!", succeed, total) } }