How do I see logs from the scheduler when working from local?
I am using the scheduler within a worker, but I'm unsure how to see console logs when the scheduler is ran like you would be able to see when updating endpoints.
Environment:
- My version of wrangler is
3.11.0
- My version of @cloudflare/wasm-coredump
is 1.0.3
- I am writing in Rust, where worker = { version = "0.0.18", features = ["d1"] }
Workflow:
1. I run my local instance with npx wrangler dev
.
2. I use postman to GET request the following endpoint to test the scheduler:
This simply returns ok
, and there is nothing in the console to show that anything registered. However, when I check for database changes that occur within my #[event(scheduled)]
function, I find that they completed successfully! But where do I see the print statements?
For example, the following never gets printed:
2 Replies
swap that to console_log!