Stream: wasmtime

Topic: ✔ RUST_LOG with the wasmtime cli


view this post on Zulip Jonathan Coates (May 19 2024 at 09:46):

Hi! Sorry, bit of a daft question, but was trying to debug why/where a program of mine was getting stuck, and was having issues getting RUST_LOG to work. My understanding of https://docs.wasmtime.dev/cli-logging.html is that I should do RUST_LOG=wasi_common=trace, but neither that nor RUST_LOG=trace appear to do anything.

Tested this on wasmtime 20.0.2, installed from both Arch and Nix and with and without -D logging=yes.

view this post on Zulip Chris Fallin (May 19 2024 at 15:08):

Try WASMTIME_LOG instead (poorly documented, sorry!)

view this post on Zulip Jonathan Coates (May 20 2024 at 06:47):

Oh perfect, thank you!

view this post on Zulip Jonathan Coates (May 20 2024 at 10:43):

Ahh, the logger name has also changed to wasmtime_wasi. Will submit a PR in a wee bit with those fixes.

view this post on Zulip Pat Hickey (May 20 2024 at 17:07):

thanks for reporting this - the docs website doesnt get a lot of love, so we only notice these problems when someone tells us

view this post on Zulip Notification Bot (May 20 2024 at 17:55):

Jonathan Coates has marked this topic as resolved.


Last updated: Dec 23 2024 at 13:07 UTC