From c5a2fd45f9344b7856059326eada891503c92222 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Tue, 17 Jun 2025 20:04:40 +0100 Subject: [PATCH] log levels updated --- .../instagram_tbot_extractor/instagram_tbot_extractor.py | 2 +- .../opentimestamps_enricher/opentimestamps_enricher.py | 4 ++-- .../modules/telethon_extractor/telethon_extractor.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/auto_archiver/modules/instagram_tbot_extractor/instagram_tbot_extractor.py b/src/auto_archiver/modules/instagram_tbot_extractor/instagram_tbot_extractor.py index f63f2c1..b4f9378 100644 --- a/src/auto_archiver/modules/instagram_tbot_extractor/instagram_tbot_extractor.py +++ b/src/auto_archiver/modules/instagram_tbot_extractor/instagram_tbot_extractor.py @@ -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}.") diff --git a/src/auto_archiver/modules/opentimestamps_enricher/opentimestamps_enricher.py b/src/auto_archiver/modules/opentimestamps_enricher/opentimestamps_enricher.py index d909d8e..c920a03 100644 --- a/src/auto_archiver/modules/opentimestamps_enricher/opentimestamps_enricher.py +++ b/src/auto_archiver/modules/opentimestamps_enricher/opentimestamps_enricher.py @@ -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=}") diff --git a/src/auto_archiver/modules/telethon_extractor/telethon_extractor.py b/src/auto_archiver/modules/telethon_extractor/telethon_extractor.py index d17b25b..279dccd 100644 --- a/src/auto_archiver/modules/telethon_extractor/telethon_extractor.py +++ b/src/auto_archiver/modules/telethon_extractor/telethon_extractor.py @@ -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...")