summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/components/app.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-12-07 16:07:42 -0300
committerSebastian <sebasjm@gmail.com>2022-12-07 16:08:20 -0300
commit46835d5155a561ddf9f3e21bbb81c823c3eab943 (patch)
tree51011d2bae21b66695e3854ed49b9c63f5f35255 /packages/demobank-ui/src/components/app.tsx
parent1c6369677ab272196da314d95825273c6fff8d5f (diff)
downloadwallet-core-46835d5155a561ddf9f3e21bbb81c823c3eab943.tar.gz
wallet-core-46835d5155a561ddf9f3e21bbb81c823c3eab943.tar.bz2
wallet-core-46835d5155a561ddf9f3e21bbb81c823c3eab943.zip
no-fix: user logger instead of console.log
Diffstat (limited to 'packages/demobank-ui/src/components/app.tsx')
-rw-r--r--packages/demobank-ui/src/components/app.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/demobank-ui/src/components/app.tsx b/packages/demobank-ui/src/components/app.tsx
index b6b88f910..07ac9b8f3 100644
--- a/packages/demobank-ui/src/components/app.tsx
+++ b/packages/demobank-ui/src/components/app.tsx
@@ -1,3 +1,7 @@
+import {
+ globalLogLevel,
+ setGlobalLogLevelFromString,
+} from "@gnu-taler/taler-util";
import { h, FunctionalComponent } from "preact";
import { BackendStateProvider } from "../context/backend.js";
import { PageStateProvider } from "../context/pageState.js";
@@ -32,5 +36,9 @@ const App: FunctionalComponent = () => {
</TranslationProvider>
);
};
+(window as any).setGlobalLogLevelFromString = setGlobalLogLevelFromString;
+(window as any).getGlobaLevel = () => {
+ return globalLogLevel;
+};
export default App;