rt: Don't print backtraces unless the ::rt::backtrace log level is greater than log_err
This commit is contained in:
parent
1a2eaed43d
commit
187c6c90a1
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user