Skip to content

Commit

Permalink
add error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Jul 2, 2024
1 parent ac2e020 commit 5cc7ba3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/bls_aggregation/blsagg.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (a *BlsAggregatorService) singleTaskAggregatorGoroutineFunc(
}
operatorsAvsStateDict, err := a.avsRegistryService.GetOperatorsAvsStateAtBlock(context.Background(), quorumNumbers, taskCreatedBlock)
if err != nil {
a.logger.Debug("Task goroutine failed to get operators state from avs registry", "taskIndex", taskIndex, "err", err)
a.logger.Error("Task goroutine failed to get operators state from avs registry", "taskIndex", taskIndex, "err", err)
a.aggregatedResponsesC <- BlsAggregationServiceResponse{
Err: TaskInitializationErrorFn(fmt.Errorf("AggregatorService failed to get operators state from avs registry at blockNum %d: %w", taskCreatedBlock, err), taskIndex),
TaskIndex: taskIndex,
Expand All @@ -244,6 +244,7 @@ func (a *BlsAggregatorService) singleTaskAggregatorGoroutineFunc(
}
quorumsAvsStakeDict, err := a.avsRegistryService.GetQuorumsAvsStateAtBlock(context.Background(), quorumNumbers, taskCreatedBlock)
if err != nil {
a.logger.Error("Task goroutine failed to get quorums state from avs registry", "taskIndex", taskIndex, "err", err)
a.aggregatedResponsesC <- BlsAggregationServiceResponse{
Err: TaskInitializationErrorFn(fmt.Errorf("Aggregator failed to get quorums state from avs registry: %w", err), taskIndex),
TaskIndex: taskIndex,
Expand Down

0 comments on commit 5cc7ba3

Please sign in to comment.