Skip to content

Commit

Permalink
c4Tests' logging stub should preserve the domain
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Dec 18, 2024
1 parent dda0153 commit 5d98e1e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions LiteCore/Logging/Logging_Stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5d98e1e

Please sign in to comment.