log levels updated

pull/312/head
msramalho 2025-06-17 20:04:40 +01:00
rodzic 216226e7cc
commit c5a2fd45f9
Nie znaleziono w bazie danych klucza dla tego podpisu
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ class InstagramTbotExtractor(Extractor):
"If you do, disable at least one of the archivers for the first-time setup of the telethon session: {e}"
)
with self.client.start():
logger.success(f"SETUP {self.name} login works.")
logger.info(f"SETUP {self.name} login works.")
def cleanup(self) -> None:
logger.info(f"CLEANUP {self.name}.")

Wyświetl plik

@ -20,7 +20,7 @@ class OpentimestampsEnricher(Enricher):
# Get the media files to timestamp
media_files = [m for m in to_enrich.media if m.filename and not m.get("opentimestamps")]
if not media_files:
logger.warning(f"No files found to timestamp in {url=}")
logger.debug(f"No files found to timestamp in {url=}")
return
timestamp_files = []
@ -119,7 +119,7 @@ class OpentimestampsEnricher(Enricher):
if timestamp_files:
to_enrich.set("opentimestamped", True)
to_enrich.set("opentimestamps_count", len(timestamp_files))
logger.success(f"{len(timestamp_files)} OpenTimestamps proofs created for {url=}")
logger.info(f"{len(timestamp_files)} OpenTimestamps proofs created for {url=}")
else:
to_enrich.set("opentimestamped", False)
logger.warning(f"No successful timestamps created for {url=}")

Wyświetl plik

@ -56,7 +56,7 @@ class TelethonExtractor(Extractor):
self.client = TelegramClient(self.session_file, self.api_id, self.api_hash)
with self.client.start():
logger.success(f"SETUP {self.name} login works.")
logger.info(f"SETUP {self.name} login works.")
if self.join_channels and len(self.channel_invites):
logger.info(f"SETUP {self.name} joining channels...")