Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions common/main/cpp/native_c4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,12 @@ Java_com_couchbase_lite_internal_core_impl_NativeC4_getVersion(JNIEnv *env, jcla
JNIEXPORT void JNICALL
Java_com_couchbase_lite_internal_core_impl_NativeC4_debug(JNIEnv *env, jclass ignore, jboolean debugging) {
c4log_enableFatalExceptionBacktrace();
// On Windows, LiteCore can hang while capturing the backtrace
// that warn-on-errors logs with each error. Leave it off there until that is fixed.
#ifndef _MSC_VER
if (debugging)
c4log_warnOnErrors(true);
#endif
}

/*
Expand Down
Loading