aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-01-11 12:48:32 +0100
committerFlorian Dold <florian@dold.me>2022-01-11 14:48:02 +0100
commita05e891d6e1468fdd99f710301e286857a46aea3 (patch)
tree5ea22817eb2cec888ff52a80dcd3a9986bd768fa /packages/taler-wallet-cli
parentfb22009ec4799a624f00c228fbd7435b44c1cbac (diff)
towards new recoup API
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/harness/harness.ts8
-rw-r--r--packages/taler-wallet-cli/src/index.ts8
2 files changed, 7 insertions, 9 deletions
diff --git a/packages/taler-wallet-cli/src/harness/harness.ts b/packages/taler-wallet-cli/src/harness/harness.ts
index 040bd5a6f..35162065d 100644
--- a/packages/taler-wallet-cli/src/harness/harness.ts
+++ b/packages/taler-wallet-cli/src/harness/harness.ts
@@ -2031,9 +2031,9 @@ export class WalletCli {
`wallet-${self.name}`,
`taler-wallet-cli ${
self.timetravelArg ?? ""
- } --no-throttle --wallet-db '${self.dbfile}' api '${op}' ${shellWrap(
- JSON.stringify(payload),
- )}`,
+ } --no-throttle -LTRACE --wallet-db '${
+ self.dbfile
+ }' api '${op}' ${shellWrap(JSON.stringify(payload))}`,
);
console.log("--- wallet core response ---");
console.log(resp);
@@ -2080,6 +2080,7 @@ export class WalletCli {
[
"--no-throttle",
...this.timetravelArgArr,
+ "-LTRACE",
"--wallet-db",
this.dbfile,
"run-until-done",
@@ -2095,6 +2096,7 @@ export class WalletCli {
"taler-wallet-cli",
[
"--no-throttle",
+ "-LTRACE",
...this.timetravelArgArr,
"--wallet-db",
this.dbfile,
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index b57e73a1c..22a2d8552 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -249,6 +249,7 @@ walletCli
.action(async (args) => {
await withWallet(args, async (wallet) => {
let requestJson;
+ logger.info(`handling 'api' request (${args.api.operation})`);
try {
requestJson = JSON.parse(args.api.request);
} catch (e) {
@@ -293,12 +294,6 @@ walletCli
});
});
-async function asyncSleep(milliSeconds: number): Promise<void> {
- return new Promise<void>((resolve, reject) => {
- setTimeout(() => resolve(), milliSeconds);
- });
-}
-
walletCli
.subcommand("runPendingOpt", "run-pending", {
help: "Run pending operations.",
@@ -330,6 +325,7 @@ walletCli
.maybeOption("maxRetries", ["--max-retries"], clk.INT)
.action(async (args) => {
await withWallet(args, async (wallet) => {
+ logger.info("running until pending operations are finished");
await wallet.ws.runTaskLoop({
maxRetries: args.finishPendingOpt.maxRetries,
stopWhenDone: true,