From 96e8286b37346953183bd21e856a3f7d7bf5f5d8 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 27 Mar 2026 09:17:26 -0500 Subject: [PATCH] [nexus] use SetGlobalLogLevel in SRP-TC-11 and SRP-TC-12 (#12782) This commit updates recently added Nexus tests to use the new SetGlobalLogLevel() method instead of the deprecated instance-specific SetLogLevel(). This aligns with the recent changes in the logging API which introduced per-instance log levels and repurposed the global log level management. The following test files were updated: - tests/nexus/test_1_3_SRP_TC_11.cpp - tests/nexus/test_1_3_SRP_TC_12.cpp The change also wraps the call in SuccessOrQuit() to ensure that any errors during log level configuration are caught, matching the pattern used in other Nexus tests. --- tests/nexus/test_1_3_SRP_TC_11.cpp | 2 +- tests/nexus/test_1_3_SRP_TC_12.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nexus/test_1_3_SRP_TC_11.cpp b/tests/nexus/test_1_3_SRP_TC_11.cpp index 960d5c600..3cb80b132 100644 --- a/tests/nexus/test_1_3_SRP_TC_11.cpp +++ b/tests/nexus/test_1_3_SRP_TC_11.cpp @@ -117,7 +117,7 @@ void Test_1_3_SRP_TC_11(const char *aJsonFileName) nexus.AdvanceTime(0); - Instance::SetLogLevel(kLogLevelNote); + SuccessOrQuit(Instance::SetGlobalLogLevel(kLogLevelNote)); Log("---------------------------------------------------------------------------------------"); diff --git a/tests/nexus/test_1_3_SRP_TC_12.cpp b/tests/nexus/test_1_3_SRP_TC_12.cpp index a62d5d349..27409c8f1 100644 --- a/tests/nexus/test_1_3_SRP_TC_12.cpp +++ b/tests/nexus/test_1_3_SRP_TC_12.cpp @@ -112,7 +112,7 @@ void Test_1_3_SRP_TC_12(const char *aJsonFileName) nexus.AdvanceTime(0); - Instance::SetLogLevel(kLogLevelNote); + SuccessOrQuit(Instance::SetGlobalLogLevel(kLogLevelNote)); Log("---------------------------------------------------------------------------------------");