Skip to content

Commit

Permalink
refactor: remove publish logs temporarily.
Browse files Browse the repository at this point in the history
  • Loading branch information
PromiseFru committed Nov 21, 2024
1 parent dfa7ff0 commit a17c0f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}."

Expand All @@ -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}."
8 changes: 4 additions & 4 deletions pnba.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}."

0 comments on commit a17c0f3

Please sign in to comment.