Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sentry sdk #474

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions metabrainz/model/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from metabrainz.payments import Currency, SUPPORTED_CURRENCIES
from metabrainz.payments.receipts import send_receipt
from metabrainz.admin import AdminModelView
from sentry_sdk import capture_message
from sqlalchemy.sql import func, desc
from flask import current_app
from datetime import datetime
Expand Down Expand Up @@ -173,7 +172,7 @@ def process_paypal_ipn(cls, form):
if form['payment_status'] != 'Completed':
# TODO(roman): Convert to regular `logging.info` call when such detailed logs
# are no longer necessary to capture.
capture_message("PayPal: Payment is not completed", level="info", extra={"ipn_content": form})
logging.info("PayPal: Payment is not completed: %s",form)
return

account_ids = current_app.config['PAYPAL_ACCOUNT_IDS'] # "currency => account" mapping
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rauth==0.7.3
redis==5.0.3
reportlab==4.1.0
requests==2.32.0
sentry-sdk[flask]==1.43.0
sentry-sdk[flask]==2.10.0
six==1.16.0
SQLAlchemy==1.4.52
sqlalchemy-dst>=1.0.1
Expand Down
Loading