Skip to content

Commit

Permalink
Merge pull request #209 from ElrondNetwork/extra-logs
Browse files Browse the repository at this point in the history
Extra logs
  • Loading branch information
sstanculeanu authored Feb 11, 2022
2 parents cf4cfea + b949a6c commit e1303bb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bridges/ethElrond/steps/elrondToEth/step04PerformTransfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ func (step *performTransferStep) Execute(ctx context.Context) core.StepIdentifie
if step.bridge.MyTurnAsLeader() {
err = step.bridge.PerformTransferOnEthereum(ctx)
if err != nil {
step.bridge.PrintInfo(logger.LogError, "error performing action ID",
"action ID", step.bridge.GetStoredActionID(), "error", err)
step.bridge.PrintInfo(logger.LogError, "error performing transfer on Ethereum", "error", err)
return GettingPendingBatchFromElrond
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func (step *proposeSetStatusStep) Execute(ctx context.Context) core.StepIdentifi
}

if !step.bridge.MyTurnAsLeader() {
step.bridge.PrintInfo(logger.LogDebug, "not my turn as leader in this round")
return step.Identifier()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func (step *performSetStatusStep) Execute(ctx context.Context) core.StepIdentifi

if !step.bridge.MyTurnAsLeader() {
step.bridge.PrintInfo(logger.LogDebug, "not my turn as leader in this round")

return step.Identifier()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func (step *proposeTransferStep) Execute(ctx context.Context) core.StepIdentifie
}

if !step.bridge.MyTurnAsLeader() {
step.bridge.PrintInfo(logger.LogDebug, "not my turn as leader in this round")
return step.Identifier()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func (step *performActionIDStep) Execute(ctx context.Context) core.StepIdentifie

if !step.bridge.MyTurnAsLeader() {
step.bridge.PrintInfo(logger.LogDebug, "not my turn as leader in this round")

return step.Identifier()
}

Expand Down

0 comments on commit e1303bb

Please sign in to comment.