Skip to content

Commit 82035ce

Browse files
committed
No more need to explicitly enable fatal exception handling
It is on by default, and the API that used to turn it on was removed
1 parent 8d9f55f commit 82035ce

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

C/c4Log.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,7 @@ void c4log_warnOnErrors(bool warn) noexcept { error::sWarnOnError = warn; }
329329
bool c4log_getWarnOnErrors() noexcept { return error::sWarnOnError; }
330330

331331
void c4log_enableFatalExceptionBacktrace() C4API {
332-
fleece::Backtrace::installTerminateHandler([](const string& backtrace) {
333-
c4log(kC4DefaultLog, kC4LogError,
334-
"FATAL ERROR (backtrace follows)\n"
335-
"********************\n"
336-
"%s\n"
337-
"******************** NOW TERMINATING",
338-
backtrace.c_str());
339-
});
332+
c4log(kC4DefaultLog, kC4LogWarning, "c4log_enableFatalExceptionBacktrace is a no-op now");
340333
}
341334

342335
#pragma mark - WRITING LOG MESSAGES:

0 commit comments

Comments
 (0)