Skip to content

Commit

Permalink
fix: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuhar committed Feb 16, 2024
1 parent af1efbf commit 868f41c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jobs/keys-update/keys-update.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export class KeysUpdateService {
// read from database last execution layer data
const prevElMeta = await this.elMetaStorage.get();

this.logger.log('Fetched current execution meta and meta from database');

// handle the situation when the node has fallen behind the service state
if (prevElMeta && prevElMeta?.blockNumber > currElMeta.number) {
this.logger.warn('Previous data is newer than current data', prevElMeta);
Expand All @@ -133,6 +135,9 @@ export class KeysUpdateService {

// Get modules from storage
const storageModules = await this.srModulesStorage.findAll();

this.logger.log('Fetched modules from database');

// Get staking modules from SR contract
const contractModules = await this.stakingRouterFetchService.getStakingModules({ blockHash: currElMeta.hash });

Expand Down

0 comments on commit 868f41c

Please sign in to comment.