[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix broken build
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix broken build |
Date: |
Wed, 23 Aug 2023 19:34:12 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new f5596767e fix broken build
f5596767e is described below
commit f5596767e1ad8f6461a6e64d61519783928624d2
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Aug 23 14:34:01 2023 -0300
fix broken build
---
packages/demobank-ui/src/components/app.tsx | 6 ++----
packages/taler-util/src/logging.ts | 6 +++++-
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/packages/demobank-ui/src/components/app.tsx
b/packages/demobank-ui/src/components/app.tsx
index d65398765..ea86da518 100644
--- a/packages/demobank-ui/src/components/app.tsx
+++ b/packages/demobank-ui/src/components/app.tsx
@@ -15,7 +15,7 @@
*/
import {
- globalLogLevel,
+ getGlobalLogLevel,
setGlobalLogLevelFromString,
} from "@gnu-taler/taler-util";
import { TranslationProvider } from "@gnu-taler/web-util/browser";
@@ -62,9 +62,7 @@ const App: FunctionalComponent = () => {
);
};
(window as any).setGlobalLogLevelFromString = setGlobalLogLevelFromString;
-(window as any).getGlobaLevel = () => {
- return globalLogLevel;
-};
+(window as any).getGlobalLevel = getGlobalLogLevel;
function localStorageProvider(): Map<unknown, unknown> {
const map = new Map(JSON.parse(localStorage.getItem("app-cache") || "[]"));
diff --git a/packages/taler-util/src/logging.ts
b/packages/taler-util/src/logging.ts
index b14274560..79fc49cdd 100644
--- a/packages/taler-util/src/logging.ts
+++ b/packages/taler-util/src/logging.ts
@@ -35,6 +35,10 @@ export enum LogLevel {
let globalLogLevel = LogLevel.Info;
const byTagLogLevel: Record<string, LogLevel> = {};
+export function getGlobalLogLevel(): string {
+ return globalLogLevel;
+}
+
export function setGlobalLogLevelFromString(logLevelStr: string): void {
globalLogLevel = getLevelForString(logLevelStr);
}
@@ -98,7 +102,7 @@ function writeNodeLog(
* and uses the corresponding console.* method to log in the browser.
*/
export class Logger {
- constructor(private tag: string) {}
+ constructor(private tag: string) { }
shouldLogTrace(): boolean {
const level = byTagLogLevel[this.tag] ?? globalLogLevel;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix broken build,
gnunet <=