mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Add more debug logging
This commit is contained in:
parent
8939d17b8a
commit
8da0f55869
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { dualLogger } from "@loggers";
|
||||
import { errorResponse, jsonResponse, response } from "@response";
|
||||
import type { MatchedRoute } from "bun";
|
||||
import { type Config, config } from "config-manager";
|
||||
|
|
@ -83,6 +84,12 @@ export const processRoute = async (
|
|||
matchedRoute.filePath
|
||||
).catch(() => null);
|
||||
|
||||
await dualLogger.log(
|
||||
LogLevel.DEBUG,
|
||||
"Server.RouteProcessor",
|
||||
JSON.stringify(route),
|
||||
);
|
||||
|
||||
if (!route) {
|
||||
return errorResponse("Route not found", 404);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue