Move minLogLevel to logging section

a2ecb8137811be2c9b66796d25eb27d2eb4213d7

Cohee <18619528+Cohee1207@users.noreply.github.com>

3 files changed, +8 -3Ignore whitespace
default/config.yaml+2 -2
@@ -71,8 +71,6 @@ autheliaAuth: false
7171# the username and passwords for basic auth are the same as those
7272# for the individual accounts
7373perUserBasicAuth: false
74-# Minimum log level to display in the terminal (DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3)
75-minLogLevel: 0
7674
7775# User session timeout *in seconds* (defaults to 24 hours).
7876## Set to a positive number to expire session after a certain time of inactivity
@@ -90,6 +88,8 @@ logging:
9088 # Enable access logging to access.log file
9189 # Records new connections with timestamp, IP address and user agent
9290 enableAccessLog: true
91+ # Minimum log level to display in the terminal (DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3)
92+ minLogLevel: 0
9393# -- RATE LIMITING CONFIGURATION --
9494rateLimiting:
9595 # Use X-Real-IP header instead of socket IP for rate limiting
post-install.js+5 -0
@@ -104,6 +104,11 @@ const keyMigrationMap = [
104104 newKey: 'extensions.models.textToSpeech',
105105 migrate: (value) => value,
106106 },
107+ {
108+ oldKey: 'minLogLevel',
109+ newKey: 'logging.minLogLevel',
110+ migrate: (value) => value,
111+ },
107112];
108113
109114/**
src/util.js+1 -1
@@ -763,7 +763,7 @@ export function stringToBool(str) {
763763 * Setup the minimum log level
764764 */
765765export function setupLogLevel() {
766766 const logLevel = getConfigValue('logging.minLogLevel', LOG_LEVELS.DEBUG);
767767
768768 globalThis.console.debug = logLevel <= LOG_LEVELS.DEBUG ? console.debug : () => {};
769769 globalThis.console.info = logLevel <= LOG_LEVELS.INFO ? console.info : () => {};