From c536ee1302b801b3495141e4370e3dfe1d9f1a5a Mon Sep 17 00:00:00 2001 From: DigiLive Date: Sun, 27 Apr 2025 10:39:20 +0200 Subject: [PATCH] Refactor default debug level to Fatal With `Fatal` as a default, it will log all messages until redefined. --- src/Registry.ts | 1 - src/utilities/debug.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Registry.ts b/src/Registry.ts index 830cc22..e8899f6 100644 --- a/src/Registry.ts +++ b/src/Registry.ts @@ -106,7 +106,6 @@ class Registry { * @param {DashboardInfo} info Strategy information object. */ static async initialize(info: DashboardInfo): Promise { - setDebugLevel(lvlFatal); setupCustomLocalize(info.hass); // Import the Hass States and strategy options. diff --git a/src/utilities/debug.ts b/src/utilities/debug.ts index 5864e81..43b706b 100644 --- a/src/utilities/debug.ts +++ b/src/utilities/debug.ts @@ -40,7 +40,7 @@ export const { * * @default DebugLevel.Off */ -let currentLevel: DebugLevel = DebugLevel.Off; +let currentLevel: DebugLevel = DebugLevel.Fatal; /** * Extracts the name of the function or method that called the logger from a stack trace string.