mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 23:57:46 +00:00
[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:
@@ -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("---------------------------------------------------------------------------------------");
|
||||
|
||||
|
||||
@@ -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("---------------------------------------------------------------------------------------");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user