mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
null_atomic_log_level and fix compile
This commit is contained in:
@@ -99,7 +99,7 @@ TEST_CASE("set_default_logger(nullptr)", "[registry]")
|
||||
TEST_CASE("disable automatic registration", "[registry]")
|
||||
{
|
||||
// set some global parameters
|
||||
spdlog::level::level_enum log_level = spdlog::level::level_enum::warn;
|
||||
spdlog::log_level log_level = spdlog::log_level::warn;
|
||||
spdlog::set_level(log_level);
|
||||
// but disable automatic registration
|
||||
spdlog::set_automatic_registration(false);
|
||||
@@ -111,6 +111,6 @@ TEST_CASE("disable automatic registration", "[registry]")
|
||||
// but make sure they are still initialized according to global defaults
|
||||
REQUIRE(logger1->level() == log_level);
|
||||
REQUIRE(logger2->level() == log_level);
|
||||
spdlog::set_level(spdlog::level::info);
|
||||
spdlog::set_level(spdlog::log_level::info);
|
||||
spdlog::set_automatic_registration(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user