mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 22:25:34 +01:00
[indexer] show github sha when successufly updated pools json
This commit is contained in:
parent
62169cee3f
commit
ea51ab8d0b
2 changed files with 2 additions and 4 deletions
|
@ -80,8 +80,6 @@ class PoolsParser {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
logger.info('Mining pools-v2.json import completed');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -71,7 +71,7 @@ class PoolsUpdater {
|
|||
poolsParser.setMiningPools(poolsJson);
|
||||
|
||||
if (config.DATABASE.ENABLED === false) { // Don't run db operations
|
||||
logger.info('Mining pools-v2.json import completed (no database)');
|
||||
logger.info(`Mining pools-v2.json (${githubSha}) import completed (no database)`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -84,7 +84,7 @@ class PoolsUpdater {
|
|||
logger.err(`Could not migrate mining pools, rolling back. Exception: ${JSON.stringify(e)}`, logger.tags.mining);
|
||||
await DB.query('ROLLBACK;');
|
||||
}
|
||||
logger.info('PoolsUpdater completed');
|
||||
logger.info(`Mining pools-v2.json (${githubSha}) import completed`);
|
||||
|
||||
} catch (e) {
|
||||
this.lastRun = now - (oneWeek - oneDay); // Try again in 24h instead of waiting next week
|
||||
|
|
Loading…
Add table
Reference in a new issue