fix logging

This commit is contained in:
Ramnique Singh 2025-08-18 15:18:27 +05:30
parent eaa1c518d8
commit 0a6794a467

View file

@ -148,7 +148,7 @@ export async function logUsage(customerId: string, request: z.infer<typeof LogUs
},
body: JSON.stringify(request)
});
console.log(`$[{reqId}] completed logging billing usage for customer ${customerId}`, reqId, response.status, response.statusText);
console.log(`[${reqId}] completed logging billing usage for customer ${customerId}`, reqId, response.status, response.statusText);
if (!response.ok) {
throw new Error(`Failed to log usage: ${response.status} ${response.statusText} ${await response.text()}`);
}