diff --git a/src/index.tsx b/src/index.tsx index b48f31a..05713a8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -50,7 +50,11 @@ const app = new Elysia({ .use(listConverters) .use(chooseConverter) .use(healthcheck) - .onError(({ error }) => { + .onError(({ error, code, request }) => { + if (code === "NOT_FOUND") { + console.warn(`404: ${request.method} ${new URL(request.url).pathname}`); + return; + } console.error(error); });