aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-util/src/http-impl.qtart.ts2
-rw-r--r--packages/taler-wallet-core/src/db.ts2
-rw-r--r--packages/taler-wallet-core/src/wallet.ts2
3 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-util/src/http-impl.qtart.ts b/packages/taler-util/src/http-impl.qtart.ts
index ea628676a..6ccd35b83 100644
--- a/packages/taler-util/src/http-impl.qtart.ts
+++ b/packages/taler-util/src/http-impl.qtart.ts
@@ -72,7 +72,7 @@ export class HttpLibImpl implements HttpRequestLibrary {
async fetch(url: string, opt?: HttpRequestOptions): Promise<HttpResponse> {
const method = (opt?.method ?? "GET").toUpperCase();
- logger.trace(`Requesting (Hi Marc) ${method} ${url}`);
+ logger.trace(`Requesting ${method} ${url}`);
const parsedUrl = new URL(url);
if (this.throttlingEnabled && this.throttle.applyThrottle(url)) {
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 138db157e..d8e136a50 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -63,6 +63,7 @@ import {
WireInfo,
WithdrawalExchangeAccountDetails,
codecForAny,
+ j2s,
stringifyScopeInfo,
} from "@gnu-taler/taler-util";
import { DbRetryInfo, TaskIdentifiers } from "./common.js";
@@ -3220,6 +3221,7 @@ export function clearDatabase(db: IDBDatabase): Promise<void> {
for (let i = 0; i < db.objectStoreNames.length; i++) {
stores.push(db.objectStoreNames[i]);
}
+ logger.info(`clearing object stores: ${j2s(stores)}`);
const tx = db.transaction(stores, "readwrite");
for (const store of stores) {
tx.objectStore(store).clear();
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index e4ab03b6f..614310cb6 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1828,8 +1828,8 @@ async function dispatchRequestInternal(
return await wex.cryptoApi.hashString({ str: "hello world" });
}
case WalletApiOperation.ClearDb: {
- wex.ws.clearAllCaches();
await clearDatabase(wex.db.idbHandle());
+ wex.ws.clearAllCaches();
return {};
}
case WalletApiOperation.Recycle: {