Skip to content

Commit d724f42

Browse files
committed
fix: 减少无用日志
1 parent fd29d9a commit d724f42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mcim_sync/fetcher/modrinth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def fetch_expired_and_removed_modrinth_data() -> tuple[List[str], List[str]]:
8787
expired_project_ids.update(check_expired_result)
8888
removed_project_ids.update(not_alive_result)
8989
log.debug(f"Matched {len(check_expired_result)} expired projects, {len(not_alive_result)} removed projects")
90-
log.debug(f"Removed project ids: {not_alive_result}")
90+
if len(not_alive_result) != 0:
91+
log.debug(f"Removed project ids: {not_alive_result}")
9192
time.sleep(MODRINTH_DELAY)
9293
log.debug(f"Delay {MODRINTH_DELAY} seconds")
9394
return list(expired_project_ids), list(removed_project_ids)

0 commit comments

Comments
 (0)