[dataset-manager] apply partial dataset config on channel set failure (#10490)

This commit updates `DatasetManager::ApplyConfiguration()` to apply
the rest of the parameters in the Dataset even if setting the channel
fails. The channel error is now logged as `LogCrit()`.
This commit is contained in:
Abtin Keshavarzian
2024-07-10 10:21:17 -07:00
committed by GitHub
parent b85d4eed71
commit 32fe4c7cdd
+1 -2
View File
@@ -199,8 +199,7 @@ Error DatasetManager::ApplyConfiguration(const Dataset &aDataset) const
if (error != kErrorNone)
{
LogWarn("ApplyConfiguration() Failed to set channel to %d (%s)", channel, ErrorToString(error));
ExitNow();
LogCrit("Failed to set channel to %u when applying dataset: %s", channel, ErrorToString(error));
}
break;