From 5d98e1ee24ba3c88802feaaeab7056b8644c7ede Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Wed, 18 Dec 2024 12:17:51 -0800 Subject: [PATCH] c4Tests' logging stub should preserve the domain --- LiteCore/Logging/Logging_Stub.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/LiteCore/Logging/Logging_Stub.cc b/LiteCore/Logging/Logging_Stub.cc index 91b90bc55..2d76914d9 100644 --- a/LiteCore/Logging/Logging_Stub.cc +++ b/LiteCore/Logging/Logging_Stub.cc @@ -18,15 +18,12 @@ copy of the logging system with different state, which would cause confusion. */ namespace litecore { - // Same as dylog, making this static breaks __printflike - // NOLINTBEGIN(readability-convert-member-functions-to-static) + void LogDomain::log(LogLevel level, const char* fmt, ...) { va_list args; va_start(args, fmt); - c4vlog(kC4DefaultLog, (C4LogLevel)level, fmt, args); + c4vlog(C4LogDomain(this), C4LogLevel(level), fmt, args); va_end(args); } - // NOLINTEND(readability-convert-member-functions-to-static) - } // namespace litecore