mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 14:42:11 -03:00
refactor: Change logging level from info to debug for service initialization and file monitoring
This commit is contained in:
@@ -104,8 +104,6 @@ class LoraManager:
|
|||||||
async def _initialize_services(cls):
|
async def _initialize_services(cls):
|
||||||
"""Initialize all services using the ServiceRegistry"""
|
"""Initialize all services using the ServiceRegistry"""
|
||||||
try:
|
try:
|
||||||
logger.info("LoRA Manager: Initializing services via ServiceRegistry")
|
|
||||||
|
|
||||||
# Initialize CivitaiClient first to ensure it's ready for other services
|
# Initialize CivitaiClient first to ensure it's ready for other services
|
||||||
civitai_client = await ServiceRegistry.get_civitai_client()
|
civitai_client = await ServiceRegistry.get_civitai_client()
|
||||||
|
|
||||||
@@ -115,12 +113,12 @@ class LoraManager:
|
|||||||
|
|
||||||
# Start monitors
|
# Start monitors
|
||||||
lora_monitor.start()
|
lora_monitor.start()
|
||||||
logger.info("Lora monitor started")
|
logger.debug("Lora monitor started")
|
||||||
|
|
||||||
# Make sure checkpoint monitor has paths before starting
|
# Make sure checkpoint monitor has paths before starting
|
||||||
await checkpoint_monitor.initialize_paths()
|
await checkpoint_monitor.initialize_paths()
|
||||||
checkpoint_monitor.start()
|
checkpoint_monitor.start()
|
||||||
logger.info("Checkpoint monitor started")
|
logger.debug("Checkpoint monitor started")
|
||||||
|
|
||||||
# Register DownloadManager with ServiceRegistry
|
# Register DownloadManager with ServiceRegistry
|
||||||
download_manager = await ServiceRegistry.get_download_manager()
|
download_manager = await ServiceRegistry.get_download_manager()
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ class BaseFileMonitor:
|
|||||||
def start(self):
|
def start(self):
|
||||||
"""Start file monitoring"""
|
"""Start file monitoring"""
|
||||||
if not ENABLE_FILE_MONITORING:
|
if not ENABLE_FILE_MONITORING:
|
||||||
logger.info("File monitoring is disabled via ENABLE_FILE_MONITORING setting")
|
logger.debug("File monitoring is disabled via ENABLE_FILE_MONITORING setting")
|
||||||
return
|
return
|
||||||
|
|
||||||
for path in self.monitor_paths:
|
for path in self.monitor_paths:
|
||||||
@@ -525,18 +525,18 @@ class CheckpointFileMonitor(BaseFileMonitor):
|
|||||||
def start(self):
|
def start(self):
|
||||||
"""Override start to check global enable flag"""
|
"""Override start to check global enable flag"""
|
||||||
if not ENABLE_FILE_MONITORING:
|
if not ENABLE_FILE_MONITORING:
|
||||||
logger.info("Checkpoint file monitoring is disabled via ENABLE_FILE_MONITORING setting")
|
logger.debug("Checkpoint file monitoring is disabled via ENABLE_FILE_MONITORING setting")
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.info("Checkpoint file monitoring is temporarily disabled")
|
logger.debug("Checkpoint file monitoring is temporarily disabled")
|
||||||
# Skip the actual monitoring setup
|
# Skip the actual monitoring setup
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def initialize_paths(self):
|
async def initialize_paths(self):
|
||||||
"""Initialize monitor paths from scanner - currently disabled"""
|
"""Initialize monitor paths from scanner - currently disabled"""
|
||||||
if not ENABLE_FILE_MONITORING:
|
if not ENABLE_FILE_MONITORING:
|
||||||
logger.info("Checkpoint path initialization skipped (monitoring disabled)")
|
logger.debug("Checkpoint path initialization skipped (monitoring disabled)")
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.info("Checkpoint file path initialization skipped (monitoring disabled)")
|
logger.debug("Checkpoint file path initialization skipped (monitoring disabled)")
|
||||||
pass
|
pass
|
||||||
Reference in New Issue
Block a user