From 6b4cb7026a74afb79ebac578b146bbd342c69429 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 28 Nov 2024 11:23:07 +0900 Subject: [PATCH] chore: add log --- node/pkg/chain/helper/signer.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/node/pkg/chain/helper/signer.go b/node/pkg/chain/helper/signer.go index c9557ae03..c1394cab3 100644 --- a/node/pkg/chain/helper/signer.go +++ b/node/pkg/chain/helper/signer.go @@ -127,13 +127,16 @@ func (s *Signer) MakeGlobalAggregateProof(val int64, timestamp time.Time, name s func (s *Signer) autoRenew(ctx context.Context) { autoRenewTicker := time.NewTicker(s.renewInterval) - _ = s.CheckAndUpdateSignerPK(ctx) + err := s.CheckAndUpdateSignerPK(ctx) + if err != nil { + log.Error().Str("Player", "Signer").Err(err).Msg("failed to renew signer pk") + } for { select { case <-ctx.Done(): return case <-autoRenewTicker.C: - err := s.CheckAndUpdateSignerPK(ctx) + err = s.CheckAndUpdateSignerPK(ctx) if err != nil { log.Error().Str("Player", "Signer").Err(err).Msg("failed to renew signer pk") }