mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 23:25:43 -03:00
chore: reduce symlink cache and scan log verbosity from info to debug level.
This commit is contained in:
@@ -325,7 +325,7 @@ class Config:
|
|||||||
try:
|
try:
|
||||||
with cache_path.open("w", encoding="utf-8") as handle:
|
with cache_path.open("w", encoding="utf-8") as handle:
|
||||||
json.dump(payload, handle, ensure_ascii=False, indent=2)
|
json.dump(payload, handle, ensure_ascii=False, indent=2)
|
||||||
logger.info("Symlink cache saved to %s with %d mappings", cache_path, len(self._path_mappings))
|
logger.debug("Symlink cache saved to %s with %d mappings", cache_path, len(self._path_mappings))
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.info("Failed to write symlink cache %s: %s", cache_path, exc)
|
logger.info("Failed to write symlink cache %s: %s", cache_path, exc)
|
||||||
|
|
||||||
@@ -359,7 +359,7 @@ class Config:
|
|||||||
visited_dirs: Set[str] = set()
|
visited_dirs: Set[str] = set()
|
||||||
for root in self._symlink_roots():
|
for root in self._symlink_roots():
|
||||||
self._scan_directory_links(root, visited_dirs)
|
self._scan_directory_links(root, visited_dirs)
|
||||||
logger.info(
|
logger.debug(
|
||||||
"Symlink scan finished in %.2f ms with %d mappings",
|
"Symlink scan finished in %.2f ms with %d mappings",
|
||||||
(time.perf_counter() - start) * 1000,
|
(time.perf_counter() - start) * 1000,
|
||||||
len(self._path_mappings),
|
len(self._path_mappings),
|
||||||
@@ -376,7 +376,7 @@ class Config:
|
|||||||
self._scan_symbolic_links()
|
self._scan_symbolic_links()
|
||||||
self._save_symlink_cache()
|
self._save_symlink_cache()
|
||||||
self._rebuild_preview_roots()
|
self._rebuild_preview_roots()
|
||||||
logger.info("Background symlink rescan completed")
|
logger.debug("Background symlink rescan completed")
|
||||||
except Exception as exc: # pragma: no cover - defensive logging
|
except Exception as exc: # pragma: no cover - defensive logging
|
||||||
logger.info("Background symlink rescan failed: %s", exc)
|
logger.info("Background symlink rescan failed: %s", exc)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user