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:
http://127.0.0.1:8787/cdn-cgi/mf/scheduled
http://127.0.0.1:8787/cdn-cgi/mf/scheduled
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:
println!("Determined most recent block: {}", block);
println!("Determined most recent block: {}", block);
2 Replies
kian
kian13mo ago
swap that to console_log!
Want results from more Discord servers?
Add your server