mirror of https://github.com/AxioDL/logvisor.git
Send backtrace to stderr
This commit is contained in:
parent
ac88aa934d
commit
a190c5cfb6
|
@ -124,8 +124,9 @@ void logvisorAbort()
|
||||||
char** strings = backtrace_symbols(array, size);
|
char** strings = backtrace_symbols(array, size);
|
||||||
|
|
||||||
for (size_t i = 0; i < size; i++)
|
for (size_t i = 0; i < size; i++)
|
||||||
printf("%s\n", strings[i]);
|
fprintf(stderr, "%s\n", strings[i]);
|
||||||
|
|
||||||
|
fflush(stderr);
|
||||||
free(strings);
|
free(strings);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue