-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogger.js
23 lines (22 loc) · 892 Bytes
/
logger.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import status from './status'
export default () => {
console.log('===================');
if (status.providerStatus === 0) {
console.log('load app');
} else if (status.providerStatus === 1) {
// все ок
console.log('balance', status.balance + ' ETH / ' + status.xrt + ' XRT', '| marker', status.marker, '| quota', status.quota);
} else if (status.providerStatus === 2) {
console.log('not enough balance');
console.log('balance', status.balance + ' ETH');
} else if (status.providerStatus === 3) {
console.log('not your turn');
console.log('timeoutBlocks', status.timeoutBlocks);
console.log('keepaliveBlock', status.keepaliveBlock);
console.log('marker', status.marker);
console.log('quota', status.quota);
} else if (status.providerStatus === 4) {
console.log('member not found');
console.log('members', status.members);
}
}