Skip to content

Commit

Permalink
add staking tx hash hex log in delegation (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs authored Aug 30, 2024
1 parent 7fba455 commit ee89071
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/services/unbonding.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ func (s *Services) UnbondDelegation(
}

if delegationDoc.State != types.Active {
log.Ctx(ctx).Warn().Msg("delegation state is not active, hence not eligible for unbonding")
log.Ctx(ctx).Warn().
Str("stakingTxHashHex", stakingTxHashHex).
Str("state", delegationDoc.State.ToString()).
Msg("delegation state is not active, hence not eligible for unbonding")
return types.NewErrorWithMsg(http.StatusForbidden, types.Forbidden, "delegation state is not active")
}

Expand Down

0 comments on commit ee89071

Please sign in to comment.