Move minLogLevel to logging section

This commit is contained in:
Cohee
2025-02-22 13:58:08 +02:00
parent b12cd9fe05
commit a2ecb81378
3 changed files with 8 additions and 3 deletions

View File

@@ -763,7 +763,7 @@ export function stringToBool(str) {
* Setup the minimum log level
*/
export function setupLogLevel() {
const logLevel = getConfigValue('minLogLevel', LOG_LEVELS.DEBUG);
const logLevel = getConfigValue('logging.minLogLevel', LOG_LEVELS.DEBUG);
globalThis.console.debug = logLevel <= LOG_LEVELS.DEBUG ? console.debug : () => {};
globalThis.console.info = logLevel <= LOG_LEVELS.INFO ? console.info : () => {};