From a17c0f35f1df48b05cd06a0a03b25d134e04d859 Mon Sep 17 00:00:00 2001 From: Promise Fru Date: Thu, 21 Nov 2024 10:41:32 +0100 Subject: [PATCH] refactor: remove publish logs temporarily. --- oauth2.py | 16 ++++++++-------- pnba.py | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/oauth2.py b/oauth2.py index af2bad2..db1a3c3 100644 --- a/oauth2.py +++ b/oauth2.py @@ -374,10 +374,10 @@ def create_tweet_payload(text, in_reply_to_tweet_id=None): publish_alert = ( f"Successfully sent message for '{self.platform}' at {timestamp}" ) - sentry_sdk.capture_message( - publish_alert, - level="info", - ) + # sentry_sdk.capture_message( + # publish_alert, + # level="info", + # ) logger.info(publish_alert) return f"Successfully sent message to '{self.platform}' on your behalf at {timestamp}." @@ -397,9 +397,9 @@ def _send_generic_message(self, message, url): publish_alert = ( f"Successfully sent message for '{self.platform}' at {timestamp}" ) - sentry_sdk.capture_message( - publish_alert, - level="info", - ) + # sentry_sdk.capture_message( + # publish_alert, + # level="info", + # ) logger.info(publish_alert) return f"Successfully sent message to '{self.platform}' on your behalf at {timestamp}." diff --git a/pnba.py b/pnba.py index ad2d4bc..4fda40b 100644 --- a/pnba.py +++ b/pnba.py @@ -139,9 +139,9 @@ def send_message(self, recipient, message): publish_alert = ( f"Successfully sent message for '{self.platform}' at {timestamp}" ) - sentry_sdk.capture_message( - publish_alert, - level="info", - ) + # sentry_sdk.capture_message( + # publish_alert, + # level="info", + # ) logger.info(publish_alert) return f"Successfully sent message to '{self.platform}' on your behalf at {timestamp}."