diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-15 15:12:39 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-15 15:14:30 -0800 |
| commit | 187c6c90a14ec378ce502aa7f6f184ba28a71947 (patch) | |
| tree | 2b445080be537bd4d257ba3586624a28f7fa9153 /src/rt/rust_task.cpp | |
| parent | 1a2eaed43d69f92b4e3de934bab83a1b622b31ad (diff) | |
| download | rust-187c6c90a14ec378ce502aa7f6f184ba28a71947.tar.gz rust-187c6c90a14ec378ce502aa7f6f184ba28a71947.zip | |
rt: Don't print backtraces unless the ::rt::backtrace log level is greater than log_err
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 2f275bb3222..d9ece62001d 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -436,7 +436,7 @@ rust_task::die() { void rust_task::backtrace() { - if (!log_rt_backtrace) return; + if (log_rt_backtrace <= log_err) return; #ifndef __WIN32__ void *call_stack[256]; int nframes = ::backtrace(call_stack, 256); |
