From 00ce4a466d228fd4ee21c3ba8d676679ffd25cf7 Mon Sep 17 00:00:00 2001 From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com> Date: Fri, 31 May 2024 22:12:08 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20print=20to=20stderr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/api/create/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/create/+server.ts b/src/routes/api/create/+server.ts index 8e264ef..25ed7e0 100644 --- a/src/routes/api/create/+server.ts +++ b/src/routes/api/create/+server.ts @@ -41,7 +41,7 @@ export async function POST({ request }) { const meetingId = await insertMeeting(meeting, sortedDates); return json({ meetingId }); } catch (err) { - console.log("Error creating meeting:", err); + console.error("Error creating meeting:", err, meeting, sortedDates); // TODO: This is unsafe throw error(500, `${err.stack}\nmeeting schema: ${JSON.stringify(meeting)}`); }