Skip to content

Commit 7eb4479

Browse files
authored
feat: use console.log for logging in ef template (#5340)
* feat: use console.log for logging in ef template * feat: use context.geo
1 parent e3db314 commit 7eb4479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Context } from "https://edge.netlify.com";
22

33
export default async (request: Request, context: Context) => {
4-
context.log("Hello from the logging service");
4+
console.log(`There was a request from ${context.geo.city} to ${request.url}`);
55

66
return new Response("The request to this URL was logged", {
77
headers: { "content-type": "text/html" },
88
});
9-
};
9+
};

0 commit comments

Comments
 (0)