[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.
This commit is contained in:
Jonathan Hui
2026-03-27 09:17:26 -05:00
committed by GitHub
parent e2e36d61e7
commit 96e8286b37
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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("---------------------------------------------------------------------------------------");
+1 -1
View File
@@ -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("---------------------------------------------------------------------------------------");