From 364cc811f80b4a7171bc5aba3c4fdfcaf89529b2 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Wed, 20 Dec 2023 13:53:26 +0100 Subject: [PATCH] feat: add round in reward call error log statement --- eth/rewardservice.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/rewardservice.go b/eth/rewardservice.go index fcb137abf9..a53fbbf834 100644 --- a/eth/rewardservice.go +++ b/eth/rewardservice.go @@ -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()) }