From ee24820eebc797db5c0d5f4795c4c37165feba3a Mon Sep 17 00:00:00 2001 From: Diego Campo Date: Tue, 13 Feb 2024 18:14:02 +0100 Subject: [PATCH] logs should be printed in if/else --- cmd/node/appchain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/node/appchain.go b/cmd/node/appchain.go index c3bf2d7..34a1637 100644 --- a/cmd/node/appchain.go +++ b/cmd/node/appchain.go @@ -247,9 +247,9 @@ func (ap *AppChain) SendUpdatedWeights(ctx context.Context, topicId uint64, resu txResp, err := ap.Client.BroadcastTx(ctx, ap.ReputerAccount, req) if err != nil { ap.Logger.Info().Err(err).Msg("failed to send weights to allora blockchain") + } else { + ap.Logger.Info().Any("Tx Resp:", txResp).Msg("successfully sent weights to allora blockchain") } - - ap.Logger.Info().Any("Tx Resp:", txResp).Msg("successfully sent weights to allora blockchain") } func parseFloatToUint64Weights(input string) (uint64, error) {