Logging: Server.ts fetch
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m36s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m36s
This commit is contained in:
@@ -5,6 +5,14 @@ globalThis.Response = FastResponse;
|
||||
|
||||
export default createServerEntry({
|
||||
fetch(request) {
|
||||
return handler.fetch(request)
|
||||
console.log("==> Server entry fetch start:", request.method, request.url);
|
||||
try {
|
||||
const res = handler.fetch(request);
|
||||
console.log("<== Server entry fetch sync return:", res);
|
||||
return res;
|
||||
} catch (e) {
|
||||
console.error("<== Server entry fetch sync throw:", e);
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user