Enchance weblog

This commit is contained in:
2026-04-26 23:21:26 +02:00
parent cc99f752b3
commit ff000e88d4
2 changed files with 14 additions and 10 deletions
+6 -3
View File
@@ -589,7 +589,9 @@ class ContinuousScrapeManager:
if not channels:
self._log("No channels configured for continuous scraping.")
else:
self._log(f"Starting iteration for {len(channels)} channel(s).")
self._log("=" * 50)
self._log(f"🚀 Starting iteration for {len(channels)} channel(s).")
self._log("-" * 50)
buffer = io.StringIO()
try:
with (
@@ -605,7 +607,8 @@ class ContinuousScrapeManager:
self.status["last_iteration_at"] = utc_now_iso()
self.status["last_finished_at"] = utc_now_iso()
self.status["last_error"] = None
self._log("Iteration finished.")
self._log("-" * 50)
self._log("✅ Iteration finished.")
except Exception as exc:
output = buffer.getvalue().strip()
if output:
@@ -616,7 +619,7 @@ class ContinuousScrapeManager:
self.status["last_error"] = str(exc)
sleep_seconds = max(5, interval_minutes * 60)
self._log(f"Sleeping for {interval_minutes} minute(s).")
self._log(f"💤 Sleeping for {interval_minutes} minute(s).")
interrupted = self.stop_event.wait(timeout=sleep_seconds)
if interrupted:
break