Clean up the remaining uses of print()

This commit is contained in:
2025-08-18 22:49:40 +00:00
parent 7e4c5bc911
commit 5e2e71eafb
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -183,9 +183,9 @@ async def refresh_wwwroot():
for name in sorted(set(wwwold) - set(www)):
changes += f"Deleted /{name}\n"
if changes:
print(f"Updated wwwroot:\n{changes}", end="", flush=True)
logger.info(f"Updated wwwroot:\n{changes}", end="", flush=True)
except Exception as e:
print(f"Error loading wwwroot: {e!r}")
logger.error(f"Error loading wwwroot: {e!r}")
await asyncio.sleep(0.5)
except asyncio.CancelledError:
pass