gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated (5b8924b8 -> 245564ec)


From: gnunet
Subject: [taler-wallet-core] branch master updated (5b8924b8 -> 245564ec)
Date: Fri, 24 Jul 2020 10:08:43 +0200

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

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

    from 5b8924b8 logging
     new 2208d3c4 logging
     new 245564ec submodule version

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 build-system/taler-build-scripts |  2 +-
 src/crypto/workers/cryptoApi.ts  | 17 +++++------------
 2 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/build-system/taler-build-scripts b/build-system/taler-build-scripts
index b2604317..d1f949d0 160000
--- a/build-system/taler-build-scripts
+++ b/build-system/taler-build-scripts
@@ -1 +1 @@
-Subproject commit b2604317980b9cb26f1445dfb6ff82c84f9cbe65
+Subproject commit d1f949d0cbe30839eb53f34e2a8b34f61e0ad33a
diff --git a/src/crypto/workers/cryptoApi.ts b/src/crypto/workers/cryptoApi.ts
index 14964e4d..5e922ec0 100644
--- a/src/crypto/workers/cryptoApi.ts
+++ b/src/crypto/workers/cryptoApi.ts
@@ -45,6 +45,9 @@ import {
 } from "../../types/walletTypes";
 
 import * as timer from "../../util/timer";
+import { Logger } from "../../util/logging";
+
+const logger = new Logger("cryptoApi.ts");
 
 /**
  * State of a crypto worker.
@@ -144,15 +147,13 @@ export class CryptoApi {
    */
   private stopped = false;
 
-  static enableTracing = false;
-
   /**
    * Terminate all worker threads.
    */
   terminateWorkers(): void {
     for (const worker of this.workers) {
       if (worker.w) {
-        CryptoApi.enableTracing && console.log("terminating worker");
+        logger.trace("terminating worker");
         worker.w.terminate();
         if (worker.terminationTimerHandle) {
           worker.terminationTimerHandle.clear();
@@ -177,9 +178,7 @@ export class CryptoApi {
    */
   wake(ws: WorkerState, work: WorkItem): void {
     if (this.stopped) {
-      console.log("cryptoApi is stopped");
-      CryptoApi.enableTracing &&
-        console.log("not waking, as cryptoApi is stopped");
+      logger.trace("cryptoApi is stopped");
       return;
     }
     if (ws.currentWorkItem !== null) {
@@ -282,12 +281,6 @@ export class CryptoApi {
       return;
     }
 
-    CryptoApi.enableTracing &&
-      console.log(
-        `rpc ${currentWorkItem.operation} took ${
-          timer.performanceNow() - currentWorkItem.startTime
-        }ms`,
-      );
     currentWorkItem.resolve(msg.data.result);
   }
 

-- 
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]