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:
Luke Mino-Altherr
2026-02-11 16:59:49 -08:00
parent d010525648
commit eb4d682f4f
3 changed files with 7 additions and 3 deletions

View File

@@ -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()

View File

@@ -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,