mirror of https://github.com/citusdata/citus.git
wip
parent
63d9371d36
commit
30fe53bc8d
|
@ -377,13 +377,15 @@ multi_log_hook(ErrorData *edata)
|
|||
nframes = backtrace(buf, lengthof(buf));
|
||||
// backtrace_symbols_fd(buf, nframes, fileno(stderr));
|
||||
char** strings = backtrace_symbols(buf, nframes);
|
||||
|
||||
appendStringInfoString(newStr, "\nBACKTRACE INFO: \n");
|
||||
if (strings) {
|
||||
for (int i = 0; i < nframes; i++) {
|
||||
appendStringInfoChar(newStr, '\n');
|
||||
appendStringInfoString(newStr, strings[i]);
|
||||
}
|
||||
}
|
||||
appendStringInfoString(newStr, "\n\n");
|
||||
|
||||
edata->message = newStr->data;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue