Skip to content

Commit

Permalink
refactor(server): Use console.info for better message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 29, 2024
1 parent 7f29044 commit 8a2532c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
});
Expand Down

0 comments on commit 8a2532c

Please sign in to comment.