Skip to content

Commit 25b4411

Browse files
committed
feat: added debug logs to validators job
1 parent 683be55 commit 25b4411

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/jobs/validators/validators.service.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ export class ValidatorsService {
101101
await unblock();
102102
}
103103

104+
this.logger.debug(
105+
'found validators',
106+
{
107+
indexedValidatorsCount: indexedValidators.length,
108+
activeValidatorsCount: activeValidatorCount,
109+
service: ValidatorsService.SERVICE_LOG_NAME,
110+
},
111+
{},
112+
);
113+
104114
this.validatorsStorageService.setActiveValidatorsCount(activeValidatorCount);
105115
this.validatorsStorageService.setTotalValidatorsCount(indexedValidators.length);
106116
this.validatorsStorageService.setMaxExitEpoch(latestEpoch);
@@ -114,8 +124,20 @@ export class ValidatorsService {
114124

115125
protected async findAndSetLidoValidatorsWithdrawableBalances(validators: IndexedValidator[]) {
116126
const keysData = await this.lidoKeys.fetchLidoKeysData();
127+
this.logger.debug('fetchLidoKeysData', {
128+
keysDataLength: keysData.data.length,
129+
service: ValidatorsService.SERVICE_LOG_NAME,
130+
});
117131
const lidoValidators = await this.lidoKeys.getLidoValidatorsByKeys(keysData.data, validators);
132+
this.logger.debug('lidoValidators', {
133+
lidoValidatorsLength: lidoValidators.length,
134+
service: ValidatorsService.SERVICE_LOG_NAME,
135+
});
118136
const lastWithdrawalValidatorIndex = await this.getLastWithdrawalValidatorIndex();
137+
this.logger.debug('lastWithdrawalValidatorIndex', {
138+
lastWithdrawalValidatorIndex,
139+
service: ValidatorsService.SERVICE_LOG_NAME,
140+
});
119141
const frameBalances = {};
120142

121143
const withdrawableLidoValidatorIds: string[] = [];

0 commit comments

Comments
 (0)