Skip to content

Commit

Permalink
chore: add error log on submit batch error (dymensionxyz#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
srene authored Feb 28, 2024
1 parent 06c528d commit 1c5b853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settlement/dymension/dymension.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (d *HubClient) PostBatch(batch *types.Batch, daClient da.Client, daResult *
if err != nil {
// Batch was not accepted by the settlement layer. Emitting unhealthy event
d.logger.Error("Batch not accepted by settlement layer. Emitting unhealthy event",
"startHeight", batch.StartHeight, "endHeight", batch.EndHeight)
"startHeight", batch.StartHeight, "endHeight", batch.EndHeight, "error", err)
heatlhEventData := &settlement.EventDataSettlementHealthStatus{Healthy: false, Error: settlement.ErrBatchNotAccepted}
utils.SubmitEventOrPanic(d.ctx, d.pubsub, heatlhEventData,
map[string][]string{settlement.EventTypeKey: {settlement.EventSettlementHealthStatus}})
Expand Down

0 comments on commit 1c5b853

Please sign in to comment.