rt: Don't print backtraces unless the ::rt::backtrace log level is greater than log_err

This commit is contained in:
Brian Anderson 2012-11-15 15:12:39 -08:00
parent 1a2eaed43d
commit 187c6c90a1

View File

@ -436,7 +436,7 @@ rust_task::die() {
void void
rust_task::backtrace() { rust_task::backtrace() {
if (!log_rt_backtrace) return; if (log_rt_backtrace <= log_err) return;
#ifndef __WIN32__ #ifndef __WIN32__
void *call_stack[256]; void *call_stack[256];
int nframes = ::backtrace(call_stack, 256); int nframes = ::backtrace(call_stack, 256);