From 2d4f4de0abd5aa2f27d9282f695cc7079517f1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Mon, 20 Jan 2025 10:16:47 +0100 Subject: [PATCH] fix(credit_billing): logs --- apps/api/src/services/billing/credit_billing.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api/src/services/billing/credit_billing.ts b/apps/api/src/services/billing/credit_billing.ts index 8189161b..7ea822e1 100644 --- a/apps/api/src/services/billing/credit_billing.ts +++ b/apps/api/src/services/billing/credit_billing.ts @@ -43,15 +43,15 @@ export async function supaBillTeam( const _logger = (__logger ?? logger).child({ module: "credit_billing", method: "supaBillTeam", + teamId: team_id, + subscriptionId: subscription_id, + credits, }); if (team_id === "preview") { return { success: true, message: "Preview team, no credits used" }; } - _logger.info(`Billing team ${team_id} for ${credits} credits`, { - team_id, - credits, - }); + _logger.info(`Billing team ${team_id} for ${credits} credits`); const { data, error } = await supabase_service.rpc("bill_team_w_extract_3", { _team_id: team_id,