From 8a2532c7c306b5d18439c84a513b4362eb94ba80 Mon Sep 17 00:00:00 2001 From: casulit Date: Tue, 29 Oct 2024 14:12:27 +0800 Subject: [PATCH] refactor(server): Use console.info for better message formatting --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index d32cc19..05a9e00 100644 --- a/server.ts +++ b/server.ts @@ -574,7 +574,7 @@ app.get("/api/properties/:id", async (c: Context) => { app.post("/", async (c: Context) => { const data = await c.req.json(); - console.log(JSON.stringify(data)); + console.info("Received message:", JSON.stringify(data, null, 2)); await sendMessage({ kv, data, options: { delay: 5000 } }); return c.text("Hono!"); });