gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: wallet-core: use logger, not


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: use logger, not console
Date: Tue, 16 Jul 2024 23:45:52 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 110021739 wallet-core: use logger, not console
110021739 is described below

commit 1100217397aef65391e5441d219ddf9a4a62954c
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jul 16 23:45:47 2024 +0200

    wallet-core: use logger, not console
---
 packages/taler-wallet-core/src/query.ts | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/packages/taler-wallet-core/src/query.ts 
b/packages/taler-wallet-core/src/query.ts
index db93a28dd..103933ff4 100644
--- a/packages/taler-wallet-core/src/query.ts
+++ b/packages/taler-wallet-core/src/query.ts
@@ -89,10 +89,10 @@ function requestToPromise(req: IDBRequest): Promise<any> {
         "name" in req.error &&
         req.error.name === "AbortError"
       ) {
-        console.warn("DB request failed, transaction aborted");
+        logger.warn("DB request failed, transaction aborted");
       } else {
-        console.error("error in DB request", req.error);
-        console.error("Request failed:", stack);
+        logger.error(`error in DB request: ${req.error}`);
+        logger.error(`Request failed: ${stack}`);
       }
       reject(req.error);
     };
@@ -659,11 +659,11 @@ function runTx<Arg, Res>(
           logger.trace("aborting transaction");
           tx.abort();
         } else if ("name" in e && e.name === "AbortError") {
-          console.warn("got AbortError, transaction was aborted");
+          logger.warn("got AbortError, transaction was aborted");
         } else {
           transactionException = e;
           logger.error(`Transaction failed: ${safeStringifyException(e)}`);
-          console.error(stack);
+          logger.error(`${stack}`);
           tx.abort();
         }
       })

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]