risc0 / risc0

RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture.
https://risczero.com
Apache License 2.0
1.68k stars 424 forks source link

Executor Statistics environment flag is invalid #2457

Open SkymanOne opened 2 weeks ago

SkymanOne commented 2 weeks ago

Is there an existing issue?

Experiencing problems? Have you tried our Discord first?

Description of bug

According to https://dev.risczero.com/api/zkvm/quickstart to enable executor statistics, one should set RUST_LOG="[executor]=info". However, this does not seem to work on my machine Macbook Pro M1. Instead, RUST_LOG=info seems to do the job.

Crate version: 1.1.2

Steps to reproduce

  1. Create a new project with cargo risczero new ...
  2. Run RISC0_DEV_MODE=1 RUST_LOG="[executor]=info" cargo run --release
  3. Run RISC0_DEV_MODE=1 RUST_LOG=info cargo run --release
linear[bot] commented 2 weeks ago

ZKVM-604 Executor Statistics environment flag is invalid

austinabell commented 1 week ago

These docs seem up to date, but I do notice that an old version of the docs has this recommendation (RUST_LOG=[executor]=info).

These logs follow standard RUST_LOG semantics, so feel free to filter the logs you see using that!

SkymanOne commented 1 week ago

Thanks, that explains it. I left the issue open to close it with PR, which updates the docs in other places.