diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-14 15:53:50 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-14 15:53:50 +0530 |
commit | 953cd9dc41ff3d52d23fe77f4ba3c18281e9d58f (patch) | |
tree | 17ff47fea3651dad192beee5d32c5fd4c538fa39 /packages/taler-wallet-webextension | |
parent | e3850158c249d890399fdb9e083ec7e654a8380f (diff) |
nuke some console.log statements, test wallet testing functionality in integration test
Diffstat (limited to 'packages/taler-wallet-webextension')
-rw-r--r-- | packages/taler-wallet-webextension/src/browserWorkerEntry.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/browserWorkerEntry.ts b/packages/taler-wallet-webextension/src/browserWorkerEntry.ts index 77c38fda9..cb13582a2 100644 --- a/packages/taler-wallet-webextension/src/browserWorkerEntry.ts +++ b/packages/taler-wallet-webextension/src/browserWorkerEntry.ts @@ -22,7 +22,9 @@ * Imports. */ -import { CryptoImplementation } from "taler-wallet-core"; +import { CryptoImplementation, Logger } from "taler-wallet-core"; + +const logger = new Logger("browserWorkerEntry.ts"); const worker: Worker = (self as any) as Worker; @@ -42,7 +44,7 @@ async function handleRequest( const result = (impl as any)[operation](...args); worker.postMessage({ result, id }); } catch (e) { - console.log("error during operation", e); + logger.error("error during operation", e); return; } } @@ -64,10 +66,6 @@ worker.onmessage = (msg: MessageEvent) => { return; } - if (CryptoImplementation.enableTracing) { - console.log("onmessage with", operation); - } - handleRequest(operation, id, args).catch((e) => { console.error("error in browsere worker", e); }); |