Skip to content

Commit

Permalink
manage: do not u3l_log when generating the stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova committed Dec 12, 2024
1 parent 997ba3a commit 592230a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/noun/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,9 @@ u3m_stacktrace()
if ( _self_path((c3_c*)self_path_c) == 0 ) {
bt_state = backtrace_create_state((const c3_c*)self_path_c, 0, err_cb, 0);
backtrace_full(bt_state, 0, bt_cb, err_cb, &data);
if (data.fail == 0) u3l_log("");
if (data.fail == 0) {
fprintf(stderr, "\r\n");
}
}
else {
data.fail = 1;
Expand All @@ -861,7 +863,7 @@ u3m_stacktrace()
for ( c3_i i = 0; i < size; i++ ) {
fprintf(stderr, "%s\r\n", strings[i]);
}
u3l_log("");
fprintf(stderr, "\r\n");
}

free(strings);
Expand Down Expand Up @@ -892,7 +894,7 @@ u3m_stacktrace()
} while (unw_step(&cursor) > 0);

if ( (data.count > 0) ) {
u3l_log("");
fprintf(stderr, "\r\n");
}
}
else {
Expand Down

0 comments on commit 592230a

Please sign in to comment.