From 35caaab4033b04c11c29abe96ecaa28617db2d1d Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 14:05:54 +0000 Subject: [PATCH] fix(test): do not change the global log severity in tests - ZeroCopyFromUnmanaged and RegionEventSubscriptions set the console severity to debug and did not restore it - the setting stayed active for all later tests in the same process, e.g. with --gtest_repeat or a direct run of the test binary Co-Authored-By: Claude Opus 5.5 --- test/message/_message.cxx | 2 -- test/region/_region.cxx | 2 -- 2 files changed, 4 deletions(-) diff --git a/test/message/_message.cxx b/test/message/_message.cxx index ac9cfb96..23642851 100644 --- a/test/message/_message.cxx +++ b/test/message/_message.cxx @@ -293,8 +293,6 @@ auto ZeroCopy(bool expandedShmMetadata = false) -> void // Currently it holds true for the shmem (across devices) and for zeromq (within same device) transports. auto ZeroCopyFromUnmanaged(string const& address, bool expandedShmMetadata, uint64_t rcSegmentSize) -> void { - fair::Logger::SetConsoleSeverity(fair::Severity::debug); - ProgOptions config1; ProgOptions config2; string session(tools::Uuid()); diff --git a/test/region/_region.cxx b/test/region/_region.cxx index 09d3a001..86a7ebd8 100644 --- a/test/region/_region.cxx +++ b/test/region/_region.cxx @@ -153,8 +153,6 @@ void RegionsCache(const string& transport, const string& _address) void RegionEventSubscriptions(const string& transport, bool external) { - fair::Logger::SetConsoleSeverity(fair::Severity::debug); - unique_ptr shmOwner = nullptr; size_t session{tools::UuidHash()};