Skip to content

Commit 7633972

Browse files
committed
Better logging if a background worker isn’t created
1 parent 6744617 commit 7633972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/api.v1.projects.$projectRef.background-workers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
5858
{ status: 200 }
5959
);
6060
} catch (e) {
61-
logger.error("Failed to create background worker", { error: e });
61+
logger.error("Failed to create background worker", { error: JSON.stringify(e) });
6262

6363
if (e instanceof ServiceValidationError) {
6464
return json({ error: e.message }, { status: 400 });

0 commit comments

Comments
 (0)