From 90259b5cc76db7e7ae24875f1c881e0f5932f8cc Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 26 Jul 2021 10:55:51 +0300 Subject: [PATCH] [#685] neofs-adm: reduce amount of logs If `init` is run on a dirty network (i.e. with some stages already done), no transactions are really sent so clean up logs a bit. Signed-off-by: Evgenii Stratonikov --- cmd/neofs-adm/internal/modules/morph/initialize.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/neofs-adm/internal/modules/morph/initialize.go b/cmd/neofs-adm/internal/modules/morph/initialize.go index 809937905..7f8479a75 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize.go @@ -180,6 +180,10 @@ func openAlphabetWallets(walletDir string) ([]*wallet.Wallet, error) { } func (c *initializeContext) awaitTx() error { + if len(c.Hashes) == 0 { + return nil + } + c.Command.Println("Waiting for transactions to persist...") tick := time.NewTicker(c.PollInterval)