diff --git a/server/client_log.ts b/server/client_log.ts index 43f06d1..a53a741 100644 --- a/server/client_log.ts +++ b/server/client_log.ts @@ -37,6 +37,7 @@ export class ClientLog { }); } + console.log("NOT FOUND 2", url.hostname, url.pathname); return new Response("Not found", { status: 404 }); } diff --git a/server/index.ts b/server/index.ts index 58dde03..63e52c3 100644 --- a/server/index.ts +++ b/server/index.ts @@ -15,7 +15,9 @@ export async function handleRequest( env: Env, ctx: ExecutionContext, ): Promise { + console.log("URL", request.url); const url = new URL(request.url); + console.log("NEW URL", url); // redirect to secure connections, unless on localhost (for testing) if (url.hostname != "localhost" && url.hostname != "127.0.0.1") { @@ -69,6 +71,7 @@ export async function handleRequest( return logsObject.fetch(strippedUrl, request); } + console.log("NOT FOUND 1", url.hostname, url.pathname, path); return new Response("Not found", { status: 404 }); }