From 32fe4c7cdd869d960b8fd9793780c6c5390cff4c Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 10 Jul 2024 10:21:17 -0700 Subject: [PATCH] [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()`. --- src/core/meshcop/dataset_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/meshcop/dataset_manager.cpp b/src/core/meshcop/dataset_manager.cpp index de2c1d886..3ebd90d13 100644 --- a/src/core/meshcop/dataset_manager.cpp +++ b/src/core/meshcop/dataset_manager.cpp @@ -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;