Refactor default debug level to Fatal

With `Fatal` as a default, it will log all messages until redefined.
This commit is contained in:
DigiLive
2025-04-27 10:39:20 +02:00
parent 016d94ed69
commit c536ee1302
2 changed files with 1 additions and 2 deletions

View File

@@ -106,7 +106,6 @@ class Registry {
* @param {DashboardInfo} info Strategy information object. * @param {DashboardInfo} info Strategy information object.
*/ */
static async initialize(info: DashboardInfo): Promise<void> { static async initialize(info: DashboardInfo): Promise<void> {
setDebugLevel(lvlFatal);
setupCustomLocalize(info.hass); setupCustomLocalize(info.hass);
// Import the Hass States and strategy options. // Import the Hass States and strategy options.

View File

@@ -40,7 +40,7 @@ export const {
* *
* @default DebugLevel.Off * @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. * Extracts the name of the function or method that called the logger from a stack trace string.