aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-05-23 13:09:04 +0200
committerFlorian Dold <florian@dold.me>2024-05-23 13:09:04 +0200
commit8b37f6ef4987cb06b4682d5bd2cfc907fd9f8d2d (patch)
treeeeab7309c230f5ba03316a057fef9829a9516b82 /packages/taler-wallet-core/src
parent027b26d1ac9d88a4cfc901cc2465e45bfe13e812 (diff)
downloadwallet-core-8b37f6ef4987cb06b4682d5bd2cfc907fd9f8d2d.tar.xz
wallet-core: clean up logging, fix shepherd typo
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r--packages/taler-wallet-core/src/shepherd.ts2
-rw-r--r--packages/taler-wallet-core/src/wallet.ts16
2 files changed, 4 insertions, 14 deletions
diff --git a/packages/taler-wallet-core/src/shepherd.ts b/packages/taler-wallet-core/src/shepherd.ts
index 3b160d97f..dbdd7aac5 100644
--- a/packages/taler-wallet-core/src/shepherd.ts
+++ b/packages/taler-wallet-core/src/shepherd.ts
@@ -256,7 +256,7 @@ export class TaskSchedulerImpl implements TaskScheduler {
async reload(): Promise<void> {
await this.ensureRunning();
const tasksIds = [...this.sheps.keys()];
- logger.info(`reloading sheperd with ${tasksIds.length} tasks`);
+ logger.info(`reloading shepherd with ${tasksIds.length} tasks`);
for (const taskId of tasksIds) {
this.stopShepherdTask(taskId);
}
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 68da15410..49ffbcfb6 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -721,12 +721,9 @@ async function dispatchRequestInternal(
case WalletApiOperation.InitWallet: {
const req = codecForInitRequest().decode(payload);
- logger.info(`init request: ${j2s(req)}`);
-
- if (wex.ws.initCalled) {
- logger.info("initializing wallet (repeat initialization)");
- } else {
- logger.info("initializing wallet (first initialization)");
+ if (logger.shouldLogTrace()) {
+ const initType = wex.ws.initCalled ? "repeat initialization" : "first initialization";
+ logger.trace(`init request (${initType}): ${j2s(req)}`);
}
// Write to the DB to make sure that we're failing early in
@@ -1832,11 +1829,6 @@ class WalletDbTriggerSpec implements TriggerSpec {
if (info.mode !== "readwrite") {
return;
}
- logger.info(
- `in after commit callback for readwrite, modified ${j2s([
- ...info.modifiedStores,
- ])}`,
- );
const modified = info.accessedStores;
if (
modified.has(WalletStoresV1.exchanges.storeName) ||
@@ -1924,8 +1916,6 @@ export class InternalWalletState {
initWithConfig(newConfig: WalletRunConfig): void {
this._config = newConfig;
- logger.info(`setting new config to ${j2s(newConfig)}`);
-
this._http = this.httpFactory(newConfig);
if (this.config.testing.devModeActive) {