[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 06/11: added timestamps to logs
From: |
gnunet |
Subject: |
[taler-wallet-core] 06/11: added timestamps to logs |
Date: |
Thu, 18 Nov 2021 13:52:42 +0100 |
This is an automated email from the git hooks/post-receive script.
marco-boss pushed a commit to branch master
in repository wallet-core.
commit 42cf0c445c2c1da04fa9c9e1a6151108fce975f7
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Sun Nov 7 11:47:50 2021 +0100
added timestamps to logs
---
packages/taler-wallet-cli/src/bench1.ts | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/packages/taler-wallet-cli/src/bench1.ts
b/packages/taler-wallet-cli/src/bench1.ts
index 3d456109..025d2c97 100644
--- a/packages/taler-wallet-cli/src/bench1.ts
+++ b/packages/taler-wallet-cli/src/bench1.ts
@@ -51,7 +51,7 @@ export async function runBench1(configJson: any):
Promise<void> {
const withdrawAmount = (numDeposits + 1) * 10;
- logger.info(`Starting Benchmark with ${numIter} Iterations`);
+ logger.info(`Starting Benchmark iterations=${numIter}
deposits=${numDeposits}`);
for (let i = 0; i < numIter; i++) {
// Create a new wallet in each iteration
@@ -63,8 +63,9 @@ export async function runBench1(configJson: any):
Promise<void> {
httpLib: myHttpLib,
});
await wallet.client.call(WalletApiOperation.InitWallet, {});
-
- logger.info(`Starting withdrawal of ${withdrawAmount} ${b1conf.currency}`);
+
+ logger.trace(`Starting withdrawal amount=${withdrawAmount}`);
+ console.time('withdraw');
await wallet.client.call(WalletApiOperation.WithdrawFakebank, {
amount: b1conf.currency + ":" + withdrawAmount,
@@ -76,11 +77,13 @@ export async function runBench1(configJson: any):
Promise<void> {
stopWhenDone: true,
});
- logger.info(`Finished withdrawal`);
+ logger.info(`Finished withdrawal amount=${withdrawAmount}
time=${console.time('withdraw')}`);
for (let i = 0; i < numDeposits; i++) {
- logger.info(`Starting deposit of 10 ${b1conf.currency}`);
+ logger.trace(`Starting deposit amount=10`);
+ console.time('deposit')
+
await wallet.client.call(WalletApiOperation.CreateDepositGroup, {
amount: b1conf.currency + ":10",
depositPaytoUri: b1conf.payto,
@@ -89,7 +92,8 @@ export async function runBench1(configJson: any):
Promise<void> {
await wallet.runTaskLoop({
stopWhenDone: true,
});
- logger.info(`Deposit succesful`);
+
+ logger.info(`Finished deposit amount=10
time=${console.time('deposit')}`);
}
wallet.stop();
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (9f0429cb -> 525fcc48), gnunet, 2021/11/18
- [taler-wallet-core] 02/11: remove string(), gnunet, 2021/11/18
- [taler-wallet-core] 01/11: update bench1 config, gnunet, 2021/11/18
- [taler-wallet-core] 06/11: added timestamps to logs,
gnunet <=
- [taler-wallet-core] 04/11: start a new wallet for each iteration, gnunet, 2021/11/18
- [taler-wallet-core] 03/11: disable throttling for bench1, gnunet, 2021/11/18
- [taler-wallet-core] 05/11: added some logging messages, gnunet, 2021/11/18
- [taler-wallet-core] 08/11: update time calculation, gnunet, 2021/11/18
- [taler-wallet-core] 07/11: timeEnd, gnunet, 2021/11/18
- [taler-wallet-core] 09/11: purge wallet after a specified amount of iterations, gnunet, 2021/11/18
- [taler-wallet-core] 11/11: Merge benchmark implementation for Grid5000, gnunet, 2021/11/18
- [taler-wallet-core] 10/11: fix wallet.stop, gnunet, 2021/11/18