mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-12 08:42:38 +02:00
fix logging
This commit is contained in:
parent
eaa1c518d8
commit
0a6794a467
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ export async function logUsage(customerId: string, request: z.infer<typeof LogUs
|
||||||
},
|
},
|
||||||
body: JSON.stringify(request)
|
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) {
|
if (!response.ok) {
|
||||||
throw new Error(`Failed to log usage: ${response.status} ${response.statusText} ${await response.text()}`);
|
throw new Error(`Failed to log usage: ${response.status} ${response.statusText} ${await response.text()}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue