diff options
author | Florian Dold <florian@dold.me> | 2023-10-23 18:15:41 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-10-23 18:15:41 +0200 |
commit | 2512665e9462690162a5bae5fab3337217943269 (patch) | |
tree | 0872072765a4ddba02072e7c748f06387e0fdb9d /packages/taler-wallet-embedded/src | |
parent | 51cf4180827f4560df954744f724f0bfc5d29a20 (diff) | |
download | wallet-core-2512665e9462690162a5bae5fab3337217943269.tar.xz |
move useNativeLogging to top-level
Diffstat (limited to 'packages/taler-wallet-embedded/src')
-rw-r--r-- | packages/taler-wallet-embedded/src/wallet-qjs.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts index 066062f23..1c0bca69a 100644 --- a/packages/taler-wallet-embedded/src/wallet-qjs.ts +++ b/packages/taler-wallet-embedded/src/wallet-qjs.ts @@ -15,7 +15,7 @@ */ /** - * Entry-point for the wallet under qtart, the QuckJS-based GNU Taler runtime. + * Entry-point for the wallet under qtart, the QuickJS-based GNU Taler runtime. */ /** @@ -34,6 +34,7 @@ import { CoreApiMessageEnvelope, CoreApiResponse, CoreApiResponseSuccess, + enableNativeLogging, getErrorDetailFromException, j2s, Logger, @@ -123,6 +124,10 @@ class NativeWalletMessageHandler { if (logLevel) { setGlobalLogLevelFromString(logLevel); } + const nativeLogging = args.useNativeLogging ?? false; + if (nativeLogging) { + enableNativeLogging(); + } await reinit(); return wrapSuccessResponse({ ...initResponse, |