Skip to content

Commit 5795778

Browse files
mayhemamCap1712
andauthored
Update sentry sdk (#474)
* Update sentry sdk * Replace capture_message with logging --------- Co-authored-by: Kartik Ohri <kartikohri13@gmail.com>
1 parent 0be8f6d commit 5795778

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

metabrainz/model/payment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from metabrainz.payments import Currency, SUPPORTED_CURRENCIES
77
from metabrainz.payments.receipts import send_receipt
88
from metabrainz.admin import AdminModelView
9-
from sentry_sdk import capture_message
109
from sqlalchemy.sql import func, desc
1110
from flask import current_app
1211
from datetime import datetime
@@ -173,7 +172,7 @@ def process_paypal_ipn(cls, form):
173172
if form['payment_status'] != 'Completed':
174173
# TODO(roman): Convert to regular `logging.info` call when such detailed logs
175174
# are no longer necessary to capture.
176-
capture_message("PayPal: Payment is not completed", level="info", extra={"ipn_content": form})
175+
logging.info("PayPal: Payment is not completed: %s",form)
177176
return
178177

179178
account_ids = current_app.config['PAYPAL_ACCOUNT_IDS'] # "currency => account" mapping

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rauth==0.7.3
3030
redis==5.0.3
3131
reportlab==4.1.0
3232
requests==2.32.0
33-
sentry-sdk[flask]==1.43.0
33+
sentry-sdk[flask]==2.10.0
3434
six==1.16.0
3535
SQLAlchemy==1.4.52
3636
sqlalchemy-dst>=1.0.1

0 commit comments

Comments
 (0)