Remove obsolete log statements
This commit is contained in:
parent
849410bb64
commit
48fcb7eac5
14
server.ts
14
server.ts
@ -24,11 +24,6 @@ router.get("/:path", async (ctx: ctx) => {
|
|||||||
ctx.response.status = 404;
|
ctx.response.status = 404;
|
||||||
ctx.response.body = "Not Found";
|
ctx.response.body = "Not Found";
|
||||||
}
|
}
|
||||||
|
|
||||||
log(
|
|
||||||
`${ctx.request.method} ${ctx.request.url} - ${ctx.response.status}`,
|
|
||||||
"gray",
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get("/:user/:kind.atom", async (ctx: ctx) => {
|
router.get("/:user/:kind.atom", async (ctx: ctx) => {
|
||||||
@ -40,11 +35,6 @@ router.get("/:user/:kind.atom", async (ctx: ctx) => {
|
|||||||
ctx.response.status = 404;
|
ctx.response.status = 404;
|
||||||
ctx.response.body = "Not Found";
|
ctx.response.body = "Not Found";
|
||||||
}
|
}
|
||||||
|
|
||||||
log(
|
|
||||||
`${ctx.request.method} ${ctx.request.url} - ${ctx.response.status}`,
|
|
||||||
"gray",
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get("/:user/:identifier", async (ctx: ctx) => {
|
router.get("/:user/:identifier", async (ctx: ctx) => {
|
||||||
@ -57,10 +47,6 @@ router.get("/:user/:identifier", async (ctx: ctx) => {
|
|||||||
ctx.response.body = "Not Found";
|
ctx.response.body = "Not Found";
|
||||||
}
|
}
|
||||||
|
|
||||||
log(
|
|
||||||
`${ctx.request.method} ${ctx.request.url} - ${ctx.response.status}`,
|
|
||||||
"gray",
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const app = new Application();
|
const app = new Application();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user