Skip to content

Commit

Permalink
temporary build fix should be fixed in MINIFICPP-2289
Browse files Browse the repository at this point in the history
  • Loading branch information
martinzink committed Jan 18, 2024
1 parent d1d9008 commit d44bc94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libminifi/test/unit/LoggerConfigurationTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ class TestLoggerConfiguration : public logging::LoggerConfiguration {
static std::shared_ptr<spdlog::logger> get_logger(const std::shared_ptr<logging::internal::LoggerNamespace> &root_namespace,
const std::string &name,
const std::shared_ptr<spdlog::formatter>& formatter) {
return logging::LoggerConfiguration::get_logger(root_namespace, name, formatter);
auto& config = getConfiguration();
// TODO(MINIFICPP-2289) This is an ugly hack so we dont lose test coverage
// It should not be this easy to override the lock requirement
std::mutex mutex;
const std::lock_guard<std::mutex> lock(mutex);
return config.get_logger(lock, root_namespace, name, formatter);
}
};

Expand Down

0 comments on commit d44bc94

Please sign in to comment.