From 187c6c90a14ec378ce502aa7f6f184ba28a71947 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 15 Nov 2012 15:12:39 -0800 Subject: [PATCH] rt: Don't print backtraces unless the ::rt::backtrace log level is greater than log_err --- src/rt/rust_task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);