Skip to content

Commit

Permalink
feat: add round in reward call error log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Dec 20, 2023
1 parent 46a33d1 commit 364cc81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eth/rewardservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ func (s *RewardService) Start(ctx context.Context) error {
case <-roundSink:
go func() {
err := s.tryReward()
err = fmt.Errorf("tryReward: %v", err)
if err != nil {
glog.Errorf("Error trying to call reward err=%q", err)
glog.Errorf("Error trying to call reward for round %d err=%q", s.tw.LastInitializedRound(), err)
if monitor.Enabled {
monitor.RewardCallError(err.Error())
}
Expand Down

0 comments on commit 364cc81

Please sign in to comment.