[indexer] show github sha when successufly updated pools json

This commit is contained in:
nymkappa 2023-05-30 10:42:41 -07:00
parent 62169cee3f
commit ea51ab8d0b
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04
2 changed files with 2 additions and 4 deletions

View File

@ -80,8 +80,6 @@ class PoolsParser {
} }
} }
} }
logger.info('Mining pools-v2.json import completed');
} }
/** /**

View File

@ -71,7 +71,7 @@ class PoolsUpdater {
poolsParser.setMiningPools(poolsJson); poolsParser.setMiningPools(poolsJson);
if (config.DATABASE.ENABLED === false) { // Don't run db operations 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; return;
} }
@ -84,7 +84,7 @@ class PoolsUpdater {
logger.err(`Could not migrate mining pools, rolling back. Exception: ${JSON.stringify(e)}`, logger.tags.mining); logger.err(`Could not migrate mining pools, rolling back. Exception: ${JSON.stringify(e)}`, logger.tags.mining);
await DB.query('ROLLBACK;'); await DB.query('ROLLBACK;');
} }
logger.info('PoolsUpdater completed'); logger.info(`Mining pools-v2.json (${githubSha}) import completed`);
} catch (e) { } catch (e) {
this.lastRun = now - (oneWeek - oneDay); // Try again in 24h instead of waiting next week this.lastRun = now - (oneWeek - oneDay); // Try again in 24h instead of waiting next week