Skip to content

Commit 187c6c9

Browse files
committed
rt: Don't print backtraces unless the ::rt::backtrace log level is greater than log_err
1 parent 1a2eaed commit 187c6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ rust_task::die() {
436436

437437
void
438438
rust_task::backtrace() {
439-
if (!log_rt_backtrace) return;
439+
if (log_rt_backtrace <= log_err) return;
440440
#ifndef __WIN32__
441441
void *call_stack[256];
442442
int nframes = ::backtrace(call_stack, 256);

0 commit comments

Comments
 (0)