mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-19 06:30:07 +00:00
Improve asset scanner logging
- Add log when scanner start is requested and when skipped due to already running - Remove noisy 'no mime_type' info log (expected during fast stub phase) Amp-Thread-ID: https://ampcode.com/threads/T-019c4f56-3fe1-72cb-888a-3ac4ac99b3d7 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -118,8 +118,10 @@ class AssetSeeder:
|
||||
Returns:
|
||||
True if scan was started, False if already running
|
||||
"""
|
||||
logging.info("Asset seeder start requested (roots=%s, phase=%s)", roots, phase.value)
|
||||
with self._lock:
|
||||
if self._state != State.IDLE:
|
||||
logging.info("Asset seeder already running, skipping start")
|
||||
return False
|
||||
self._state = State.RUNNING
|
||||
self._progress = Progress()
|
||||
|
||||
@@ -165,8 +165,6 @@ def batch_insert_seed_assets(
|
||||
path_to_asset_id[absolute_path] = asset_id
|
||||
|
||||
mime_type = spec.get("mime_type")
|
||||
if mime_type is None:
|
||||
logging.info("batch_insert_seed_assets: no mime_type for %s", absolute_path)
|
||||
asset_rows.append(
|
||||
{
|
||||
"id": asset_id,
|
||||
|
||||
Reference in New Issue
Block a user