Reputation: 1838
I'm developing a script to run on Cloudflare Workers and it's throwing an error:
If you are the owner of this website: you should login to Cloudflare and check the error logs for app.something.workers.dev.
I can't however figure out where to find the logs once I logged into Cloudflare. Any idea?
I know I could use try/catch
and return the error or post it elsewhere but I'm wondering how to get it with Cloudflare.
Upvotes: 3
Views: 2549
Reputation: 848
If you don't want to post the exception to an error logging service, you can use Wrangler tail
https://developers.cloudflare.com/workers/learning/debugging-workers
Upvotes: 2