Worker Logs not showing up via tail or in dashboard

My worker looks like the following:
export default {
async fetch(
request: Request,
env: Env,
ctx: ExecutionContext
): Promise<Response> {
console.log("Starting req.");
// logic
}
export default {
async fetch(
request: Request,
env: Env,
ctx: ExecutionContext
): Promise<Response> {
console.log("Starting req.");
// logic
}
The console.log statement is on the very first line of the fetch handler, and I'm not able to see logs via wrangler tail --env production or in the dashboard. Any ideas what could be going wrong here? I am able to view the logs with wrangler dev but I am not able to view the logs at all in production.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server