Moved logging level setting to admin panel

This commit is contained in:
CasVT
2024-03-03 16:01:15 +01:00
parent 42bc1178f9
commit a88cc8a36a
8 changed files with 96 additions and 15 deletions

View File

@@ -19,6 +19,7 @@ from flask import g
from backend.custom_exceptions import (AccessUnauthorized, InvalidDatabaseFile,
UserNotFound)
from backend.helpers import RestartVars, folder_path
from backend.logging import set_log_level
DB_FILENAME = 'db', 'MIND.db'
__DATABASE_VERSION__ = 10
@@ -393,6 +394,8 @@ def setup_db() -> None:
)
)
set_log_level(get_setting('log_level'))
current_db_version = get_setting('database_version')
if current_db_version < __DATABASE_VERSION__:
logging.debug(