Add configurable log level for Python and JS modules

Introduced LOG_LEVEL configuration in both Python and JavaScript to control logging verbosity. Updated logger initialization in canvas_node.py and LoggerUtils.js to use the new LOG_LEVEL from config files.
This commit is contained in:
Dariusz L
2025-07-03 13:15:33 +02:00
parent dfa7309132
commit aa31a347d1
4 changed files with 11 additions and 3 deletions

View File

@@ -28,8 +28,9 @@ import os
try:
from python.logger import logger, LogLevel, debug, info, warn, error, exception
from python.config import LOG_LEVEL
logger.set_module_level('canvas_node', LogLevel.NONE)
logger.set_module_level('canvas_node', LogLevel[LOG_LEVEL])
logger.configure({
'log_to_file': True,