mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(node-core): log errors in debug when ETA fails to calculate (#6971)
This commit is contained in:
@ -51,7 +51,7 @@ extern "C" fn print_stack_trace(_: libc::c_int) {
|
||||
// Collect return addresses
|
||||
let depth = libc::backtrace(STACK_TRACE.as_mut_ptr(), MAX_FRAMES as i32);
|
||||
if depth == 0 {
|
||||
return;
|
||||
return
|
||||
}
|
||||
&STACK_TRACE.as_slice()[0..(depth as _)]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user