Skip to content

Commit

Permalink
hotfix(wrt) set RUST_BACKTRACE to 'full' (lower-case)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Sep 12, 2023
1 parent 6b17917 commit ca926f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wasm/wrt/ngx_wrt_wasmer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/wasm/wrt/ngx_wrt_wasmtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca926f2

Please sign in to comment.