Skip to content

Commit 28db0fa

Browse files
committed
logging: Emit wasmtime-wasi-http WARN logs by default
Many hyper errors are converted to the generic HttpProtocolError by wasmtime-wasi-http, which makes debugging difficult. The original hyper error is emitted as a tracing event, so let's print those by default. Signed-off-by: Lann Martin <[email protected]>
1 parent 7986eb3 commit 28db0fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/spin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ async fn _main() -> anyhow::Result<()> {
4646
.with_writer(std::io::stderr)
4747
.with_env_filter(
4848
tracing_subscriber::EnvFilter::from_default_env()
49+
.add_directive("wasmtime_wasi_http=warn".parse()?)
4950
.add_directive("watchexec=off".parse()?),
5051
)
5152
.with_ansi(std::io::stderr().is_terminal())

0 commit comments

Comments
 (0)