aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src/index.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-11-05 13:10:15 +0100
committerFlorian Dold <florian@dold.me>2021-11-05 13:10:15 +0100
commit6fc3aa0b31021f02d10e5a2efb12879aa64774fd (patch)
tree587b4add7ef5ec4f94499fe7622f1b65ea9f09f1 /packages/taler-wallet-cli/src/index.ts
parente627f65f3cf61428202e47e9e68a5baf4a9abfae (diff)
downloadwallet-core-6fc3aa0b31021f02d10e5a2efb12879aa64774fd.tar.xz
taler-wallet: implement log level, use new wallet for every benchmark iteration
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r--packages/taler-wallet-cli/src/index.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index 142e98e7c..71431b5eb 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -43,6 +43,8 @@ import {
Configuration,
decodeCrock,
rsaBlind,
+ LogLevel,
+ setGlobalLogLevelFromString,
} from "@gnu-taler/taler-util";
import {
NodeHttpLib,
@@ -161,6 +163,12 @@ export const walletCli = clk
setDangerousTimetravel(x / 1000);
},
})
+ .maybeOption("log", ["-L", "--log"], clk.STRING, {
+ help: "configure log level (NONE, ..., TRACE)",
+ onPresentHandler: (x) => {
+ setGlobalLogLevelFromString(x);
+ },
+ })
.maybeOption("inhibit", ["--inhibit"], clk.STRING, {
help:
"Inhibit running certain operations, useful for debugging and testing.",