summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/exchanges.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-14 15:53:50 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-14 15:53:50 +0530
commit953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f (patch)
tree17ff47fea3651dad192beee5d32c5fd4c538fa39 /packages/taler-wallet-core/src/operations/exchanges.ts
parente3850158c249d890399fdb9e083ec7e654a8380f (diff)
downloadwallet-core-953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f.tar.gz
wallet-core-953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f.tar.bz2
wallet-core-953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f.zip
nuke some console.log statements, test wallet testing functionality in integration test
Diffstat (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/exchanges.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts
index a7771f6d..d40dd788 100644
--- a/packages/taler-wallet-core/src/operations/exchanges.ts
+++ b/packages/taler-wallet-core/src/operations/exchanges.ts
@@ -175,7 +175,7 @@ async function updateExchangeWithKeys(
async (tx) => {
const r = await tx.get(Stores.exchanges, baseUrl);
if (!r) {
- console.warn(`exchange ${baseUrl} no longer present`);
+ logger.warn(`exchange ${baseUrl} no longer present`);
return;
}
if (r.details) {
@@ -222,10 +222,10 @@ async function updateExchangeWithKeys(
if (oldDenom.isRevoked) {
// We already marked the denomination as revoked,
// this implies we revoked all coins
- console.log("denom already revoked");
+ logger.trace("denom already revoked");
continue;
}
- console.log("revoking denom", recoupInfo.h_denom_pub);
+ logger.trace("revoking denom", recoupInfo.h_denom_pub);
oldDenom.isRevoked = true;
await tx.put(Stores.denominations, oldDenom);
const affectedCoins = await tx
@@ -236,7 +236,7 @@ async function updateExchangeWithKeys(
}
}
if (newlyRevokedCoinPubs.length != 0) {
- console.log("recouping coins", newlyRevokedCoinPubs);
+ logger.trace("recouping coins", newlyRevokedCoinPubs);
await createRecoupGroup(ws, tx, newlyRevokedCoinPubs);
}
},
@@ -246,7 +246,7 @@ async function updateExchangeWithKeys(
// Asynchronously start recoup. This doesn't need to finish
// for the exchange update to be considered finished.
processRecoupGroup(ws, recoupGroupId).catch((e) => {
- console.log("error while recouping coins:", e);
+ logger.error("error while recouping coins:", e);
});
}