diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-14 15:53:50 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-14 15:53:50 +0530 |
commit | 953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f (patch) | |
tree | 17ff47fea3651dad192beee5d32c5fd4c538fa39 /packages/taler-wallet-core/src/operations/refresh.ts | |
parent | e3850158c249d890399fdb9e083ec7e654a8380f (diff) | |
download | wallet-core-953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f.tar.xz |
nuke some console.log statements, test wallet testing functionality in integration test
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 646bc2edf..52325281b 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -188,7 +188,7 @@ async function refreshCreateSession( } const r = Amounts.sub(c.currentAmount, refreshSession.amountRefreshInput); if (r.saturated) { - console.log("can't refresh coin, no amount left"); + logger.warn("can't refresh coin, no amount left"); return; } c.currentAmount = r.amount; @@ -387,7 +387,7 @@ async function refreshReveal( async (tx) => { const rg = await tx.get(Stores.refreshGroups, refreshGroupId); if (!rg) { - console.log("no refresh session found"); + logger.warn("no refresh session found"); return; } const rs = rg.refreshSessionPerCoin[coinIndex]; @@ -395,7 +395,7 @@ async function refreshReveal( return; } if (rs.finishedTimestamp) { - console.log("refresh session already finished"); + logger.warn("refresh session already finished"); return; } rs.finishedTimestamp = getTimestampNow(); @@ -417,7 +417,7 @@ async function refreshReveal( await tx.put(Stores.refreshGroups, rg); }, ); - console.log("refresh finished (end of reveal)"); + logger.trace("refresh finished (end of reveal)"); ws.notify({ type: NotificationType.RefreshRevealed, }); |