From 953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 14 Aug 2020 15:53:50 +0530 Subject: nuke some console.log statements, test wallet testing functionality in integration test --- packages/taler-wallet-core/src/operations/refresh.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/refresh.ts') 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, }); -- cgit v1.2.3