From 03f286305611ab136b7a9f211c3ac2cb8dff0c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-X=2E=20T=2E?= Date: Tue, 22 Sep 2026 14:52:28 -0400 Subject: [PATCH 1/2] chore: log charge ID --- apps/labrinth/src/queue/billing.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/labrinth/src/queue/billing.rs b/apps/labrinth/src/queue/billing.rs index 11a6578c8a9..809bc17f748 100644 --- a/apps/labrinth/src/queue/billing.rs +++ b/apps/labrinth/src/queue/billing.rs @@ -31,6 +31,7 @@ use chrono::Utc; use futures::FutureExt; use futures::stream::{FuturesUnordered, StreamExt}; use std::collections::HashSet; +use std::error::Error; use std::str::FromStr; use std::time::Instant; use stripe::{self, Currency}; @@ -771,8 +772,8 @@ pub async fn process_chargeable_charges( Currency::from_str(&product_price.currency_code.to_lowercase()) else { warn!( - "Could not find currency for {}", - product_price.currency_code + charge.id = charge.id.0, + "Could not find currency for {}", product_price.currency_code ); continue; }; @@ -817,6 +818,7 @@ pub async fn process_chargeable_charges( charge.payment_platform = PaymentPlatform::Stripe; } else { error!( + charge.id = charge.id.0, "Payment bootstrap succeeded but no payment intent was created" ); failure = true; @@ -824,7 +826,11 @@ pub async fn process_chargeable_charges( } Err(error) => { - error!(%error, "Failed to bootstrap payment for renewal"); + error!( + ?error, + charge.id = charge.id.0, + "Failed to bootstrap payment for renewal" + ); failure = true; } }; From 255107ed1ed6f6fd5531fd79a25afa1e644b144d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-X=2E=20T=2E?= Date: Tue, 22 Sep 2026 15:03:28 -0400 Subject: [PATCH 2/2] import --- apps/labrinth/src/queue/billing.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/labrinth/src/queue/billing.rs b/apps/labrinth/src/queue/billing.rs index 809bc17f748..5788278a5a1 100644 --- a/apps/labrinth/src/queue/billing.rs +++ b/apps/labrinth/src/queue/billing.rs @@ -31,7 +31,6 @@ use chrono::Utc; use futures::FutureExt; use futures::stream::{FuturesUnordered, StreamExt}; use std::collections::HashSet; -use std::error::Error; use std::str::FromStr; use std::time::Instant; use stripe::{self, Currency};