Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit d0b0197

Browse files
committed
Cleanup logging
1 parent 0b51555 commit d0b0197

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/action/info.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class InfoAction {
2626
const response = await this._grpc.sendCommand('getNetworkInfo');
2727
this._store.numNodes = response.num_nodes;
2828
} catch (err) {
29-
log.info('Getting network info failed', err);
29+
log.info('No network info yet');
3030
}
3131
}
3232

@@ -53,11 +53,7 @@ class InfoAction {
5353
}
5454
if (this._store.isSyncing) {
5555
this._notification.display({ msg: 'Syncing to chain', wait: true });
56-
log.info(
57-
`Syncing to chain ...`,
58-
`block height: ${response.block_height}`,
59-
`num nodes: ${this._store.numNodes}`
60-
);
56+
log.info(`Syncing to chain ... block height: ${response.block_height}`);
6157
this._store.percentSynced = this.calcPercentSynced(response);
6258
}
6359
return !this._store.isSyncing;

0 commit comments

Comments
 (0)