diff options
author | Florian Dold <florian@dold.me> | 2022-03-30 20:41:21 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-03-30 20:41:21 +0200 |
commit | 123b92b3aa67f17d01586da0d7974de06318e551 (patch) | |
tree | 93fc7171aeafa58bbe82be7cf52cac55a1bd0e30 /packages/taler-wallet-core/src | |
parent | 89435696f9a28316ab3dc5ef7c73776d092da89c (diff) | |
download | wallet-core-123b92b3aa67f17d01586da0d7974de06318e551.tar.xz |
wallet: logging, timestamp parsing backwards compatibility
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index cf292061f..1a4731939 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -818,9 +818,15 @@ async function processRefreshGroupImpl( logger.trace("processing refresh sessions for old coins"); const ps = refreshGroup.oldCoinPubs.map((x, i) => processRefreshSession(ws, refreshGroupId, i).catch((x) => { - logger.warn("process refresh session got exception"); - logger.warn(`exc ${x}`); - logger.warn(`exc stack ${x.stack}`); + if (x instanceof CryptoApiStoppedError) { + logger.info( + "crypto API stopped while processing refresh group, probably the wallet is during shutdown", + ); + } else { + logger.warn("process refresh session got exception"); + logger.warn(`exc ${x}`); + logger.warn(`exc stack ${x.stack}`); + } }), ); try { |