mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-21 20:52:12 -03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user