From 9fbbce0782a789a9d0089936d792a1966393ff20 Mon Sep 17 00:00:00 2001 From: zhangkai Date: Mon, 10 Jun 2024 15:35:12 +0800 Subject: [PATCH] add logs to monitor agg proof --- aggregator/aggregator.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aggregator/aggregator.go b/aggregator/aggregator.go index 0e53ea768c..27c6d49925 100644 --- a/aggregator/aggregator.go +++ b/aggregator/aggregator.go @@ -369,7 +369,7 @@ func (a *Aggregator) tryBuildFinalProof(ctx context.Context, prover proverInterf log.Debug("Time to verify proof not reached or proof verification in progress") return false, nil } - log.Debug("Send final proof time reached") + log.Info("Send final proof time reached") for !a.isSynced(ctx, nil) { log.Info("Waiting for synchronizer to sync...") @@ -468,7 +468,7 @@ func (a *Aggregator) validateEligibleFinalProof(ctx context.Context, proof *stat } return false, nil } else { - log.Debugf("Proof batch number %d is not the following to last verfied batch number %d", proof.BatchNumber, lastVerifiedBatchNum) + log.Infof("Proof batch number %d is not the following to last verfied batch number %d", proof.BatchNumber, lastVerifiedBatchNum) return false, nil } } @@ -710,6 +710,8 @@ func (a *Aggregator) tryAggregateProofs(ctx context.Context, prover proverInterf return false, err } + log.Info("Aggregated proof generated updated database") + // NOTE(pg): the defer func is useless from now on, use a different variable // name for errors (or shadow err in inner scopes) to not trigger it.