show errors on status page

This commit is contained in:
smart_ex 2022-04-07 15:02:28 +10:00 committed by Danil Kovtonyuk
parent 8868040882
commit cfcf1c8677
5 changed files with 13 additions and 19 deletions

View file

@ -123,7 +123,7 @@ async function init() {
eventSubscription = contract.events.NewAccount({ fromBlock: toBlock + 1 }, processNewEvent)
blockSubscription = web3.eth.subscribe('newBlockHeaders', processNewBlock)
} catch (e) {
redis.zadd('errors', new Date().getTime(), e.message)
redis.zadd('errors', 1, e.message)
console.error('error on init treeWatcher', e.message)
}
}