diff options
author | Florian Dold <florian@dold.me> | 2023-08-30 18:39:14 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-08-30 18:39:14 +0200 |
commit | 7895728308b9669d7987c8f4833f9b1b77e99d5a (patch) | |
tree | 7ed70cd9da372f6a864d133cd3f4480c47cbb6c2 /packages | |
parent | 8fed5b4b7370431602c0b25f8142009e61f7b906 (diff) | |
download | wallet-core-7895728308b9669d7987c8f4833f9b1b77e99d5a.tar.xz |
-logging
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/util/query.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/util/query.ts b/packages/taler-wallet-core/src/util/query.ts index 7697ed3db..1c3ff6a2a 100644 --- a/packages/taler-wallet-core/src/util/query.ts +++ b/packages/taler-wallet-core/src/util/query.ts @@ -257,7 +257,7 @@ export function openDatabase( req.onsuccess = (e) => { req.result.onversionchange = (evt: IDBVersionChangeEvent) => { logger.info( - `handling live db version change from ${evt.oldVersion} to ${evt.newVersion}`, + `handling versionchange on ${databaseName} from ${evt.oldVersion} to ${evt.newVersion}`, ); req.result.close(); onVersionChange(); @@ -274,6 +274,9 @@ export function openDatabase( if (!transaction) { throw Error("no transaction handle available in upgrade handler"); } + logger.info( + `handling upgradeneeded event on ${databaseName} from ${e.oldVersion} to ${e.newVersion}`, + ); onUpgradeNeeded(db, e.oldVersion, newVersion, transaction); }; }); |