From 486ffba68223c28beed671056824b408366794f4 Mon Sep 17 00:00:00 2001 From: loveuer Date: Tue, 26 Mar 2024 18:26:10 +0800 Subject: [PATCH] update: more msg --- internal/cmd/run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) } }