Warn, don't trace

This commit is contained in:
Andre Medeiros 2018-09-25 12:41:22 -04:00
parent e744a24557
commit ad2eb9ad9f
1 changed files with 3 additions and 3 deletions

View File

@ -100,14 +100,14 @@ class BlockchainConnector {
registerEvents() {
const self = this;
self.events.on('check:wentOffline:Ethereum', () => {
self.logger.trace('Ethereum went offline: stopping web3 provider...');
self.logger.warn('Ethereum went offline: stopping web3 provider...');
self.provider.stop();
// once the node goes back online, we can restart the provider
self.events.once('check:backOnline:Ethereum', () => {
self.logger.trace('Ethereum back online: starting web3 provider...');
self.logger.warn('Ethereum back online: starting web3 provider...');
self.provider.startWeb3Provider(() => {
self.logger.trace('web3 provider restarted after ethereum node came back online');
self.logger.warn('web3 provider restarted after ethereum node came back online');
});
});
});