From ca926f2b29a59034d8f38d217ac9378f3f22e92e Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Mon, 11 Sep 2023 21:17:32 -0700 Subject: [PATCH] hotfix(wrt) set RUST_BACKTRACE to 'full' (lower-case) --- src/wasm/wrt/ngx_wrt_wasmer.c | 2 +- src/wasm/wrt/ngx_wrt_wasmtime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wasm/wrt/ngx_wrt_wasmer.c b/src/wasm/wrt/ngx_wrt_wasmer.c index 05aed26b3..497e4cdfe 100644 --- a/src/wasm/wrt/ngx_wrt_wasmer.c +++ b/src/wasm/wrt/ngx_wrt_wasmer.c @@ -77,7 +77,7 @@ ngx_wasmer_init_conf(ngx_wavm_conf_t *conf, ngx_log_t *log) ngx_wasm_assert(conf->backtraces != NGX_CONF_UNSET); if (conf->backtraces) { - setenv("RUST_BACKTRACE", "FULL", 1); + setenv("RUST_BACKTRACE", "full", 1); } else { setenv("RUST_BACKTRACE", "0", 0); diff --git a/src/wasm/wrt/ngx_wrt_wasmtime.c b/src/wasm/wrt/ngx_wrt_wasmtime.c index c4e0db600..e62c0ffd9 100644 --- a/src/wasm/wrt/ngx_wrt_wasmtime.c +++ b/src/wasm/wrt/ngx_wrt_wasmtime.c @@ -135,7 +135,7 @@ ngx_wasmtime_init_conf(ngx_wavm_conf_t *conf, ngx_log_t *log) if (conf->backtraces) { setenv("WASMTIME_BACKTRACE_DETAILS", "1", 1); - setenv("RUST_BACKTRACE", "FULL", 1); + setenv("RUST_BACKTRACE", "full", 1); } else { setenv("WASMTIME_BACKTRACE_DETAILS", "0", 0);