mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
clean up logs
This commit is contained in:
parent
d4d85259e1
commit
719c7abd49
2 changed files with 8 additions and 8 deletions
|
@ -185,8 +185,8 @@ class MoneroWallet extends CoinServiceAPI {
|
||||||
try {
|
try {
|
||||||
if (walletBase!.syncStatus! is SyncedSyncStatus &&
|
if (walletBase!.syncStatus! is SyncedSyncStatus &&
|
||||||
walletBase!.syncStatus!.progress() == 1.0) {
|
walletBase!.syncStatus!.progress() == 1.0) {
|
||||||
Logging.instance
|
// Logging.instance
|
||||||
.log("currentSyncingHeight lol", level: LogLevel.Warning);
|
// .log("currentSyncingHeight lol", level: LogLevel.Warning);
|
||||||
return getSyncingHeight();
|
return getSyncingHeight();
|
||||||
}
|
}
|
||||||
} catch (e, s) {}
|
} catch (e, s) {}
|
||||||
|
|
|
@ -153,7 +153,7 @@ class WowneroWallet extends CoinServiceAPI {
|
||||||
try {
|
try {
|
||||||
_height = (walletBase!.syncStatus as SyncingSyncStatus).height;
|
_height = (walletBase!.syncStatus as SyncingSyncStatus).height;
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log("$e $s", level: LogLevel.Warning);
|
// Logging.instance.log("$e $s", level: LogLevel.Warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
int blocksRemaining = -1;
|
int blocksRemaining = -1;
|
||||||
|
@ -162,7 +162,7 @@ class WowneroWallet extends CoinServiceAPI {
|
||||||
blocksRemaining =
|
blocksRemaining =
|
||||||
(walletBase!.syncStatus as SyncingSyncStatus).blocksLeft;
|
(walletBase!.syncStatus as SyncingSyncStatus).blocksLeft;
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log("$e $s", level: LogLevel.Warning);
|
// Logging.instance.log("$e $s", level: LogLevel.Warning);
|
||||||
}
|
}
|
||||||
int currentHeight = _height + blocksRemaining;
|
int currentHeight = _height + blocksRemaining;
|
||||||
if (_height == -1 || blocksRemaining == -1) {
|
if (_height == -1 || blocksRemaining == -1) {
|
||||||
|
@ -186,8 +186,8 @@ class WowneroWallet extends CoinServiceAPI {
|
||||||
try {
|
try {
|
||||||
if (walletBase!.syncStatus! is SyncedSyncStatus &&
|
if (walletBase!.syncStatus! is SyncedSyncStatus &&
|
||||||
walletBase!.syncStatus!.progress() == 1.0) {
|
walletBase!.syncStatus!.progress() == 1.0) {
|
||||||
Logging.instance
|
// Logging.instance
|
||||||
.log("currentSyncingHeight lol", level: LogLevel.Warning);
|
// .log("currentSyncingHeight lol", level: LogLevel.Warning);
|
||||||
return getSyncingHeight();
|
return getSyncingHeight();
|
||||||
}
|
}
|
||||||
} catch (e, s) {}
|
} catch (e, s) {}
|
||||||
|
@ -195,7 +195,7 @@ class WowneroWallet extends CoinServiceAPI {
|
||||||
try {
|
try {
|
||||||
syncingHeight = (walletBase!.syncStatus as SyncingSyncStatus).height;
|
syncingHeight = (walletBase!.syncStatus as SyncingSyncStatus).height;
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log("$e $s", level: LogLevel.Warning);
|
// Logging.instance.log("$e $s", level: LogLevel.Warning);
|
||||||
}
|
}
|
||||||
final cachedHeight =
|
final cachedHeight =
|
||||||
DB.instance.get<dynamic>(boxName: walletId, key: "storedSyncingHeight")
|
DB.instance.get<dynamic>(boxName: walletId, key: "storedSyncingHeight")
|
||||||
|
@ -418,7 +418,7 @@ class WowneroWallet extends CoinServiceAPI {
|
||||||
try {
|
try {
|
||||||
progress = (walletBase!.syncStatus!).progress();
|
progress = (walletBase!.syncStatus!).progress();
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log("$e $s", level: LogLevel.Warning);
|
// Logging.instance.log("$e $s", level: LogLevel.Warning);
|
||||||
}
|
}
|
||||||
await _fetchTransactionData();
|
await _fetchTransactionData();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue