Skip to content

Commit af2ca0a

Browse files
committed
fix(exporter): add error message for status update fails
1 parent a94886f commit af2ca0a

File tree

1 file changed

+1
-0
lines changed
  • backend/pkg/exporter/db

1 file changed

+1
-0
lines changed

backend/pkg/exporter/db/db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ func SaveValidators(epoch uint64, validators []*types.Validator, client rpc.Clie
720720
log.Infof("updating validator status to %s for %d validators", status, len(validators))
721721
_, err := validatorStatusUpdateStmt.Exec(status, pq.Array(validators))
722722
if err != nil {
723+
log.Error(err, "error updating validator status", 0)
723724
return fmt.Errorf("error updating validator status: %w", err)
724725
}
725726
}

0 commit comments

Comments
 (0)