From 1a071cf05da2c191453be09c046d563289f48ad6 Mon Sep 17 00:00:00 2001 From: Abhinav Jain Date: Tue, 27 Oct 2026 00:13:37 +0530 Subject: [PATCH] Update debug logging on Windows --- common/main/cpp/native_c4.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/main/cpp/native_c4.cc b/common/main/cpp/native_c4.cc index 10ceae12e..2d95c0631 100644 --- a/common/main/cpp/native_c4.cc +++ b/common/main/cpp/native_c4.cc @@ -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 } /*