From 7d071538a7547b0d5231cad53d01fce1ab627755 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 13 Jun 2024 23:23:40 +0200 Subject: [PATCH] Add success message on removing current fabric Readd a message with progress-level when removing the current fabric succeeded. --- src/controller/CurrentFabricRemover.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controller/CurrentFabricRemover.cpp b/src/controller/CurrentFabricRemover.cpp index 899860a028221c..167fea0bb3514c 100644 --- a/src/controller/CurrentFabricRemover.cpp +++ b/src/controller/CurrentFabricRemover.cpp @@ -145,7 +145,11 @@ void CurrentFabricRemover::OnCommandFailure(void * context, CHIP_ERROR err) void CurrentFabricRemover::FinishRemoveCurrentFabric(void * context, CHIP_ERROR err) { - if (err != CHIP_NO_ERROR) + if (err == CHIP_NO_ERROR) + { + ChipLogProgress(Controller, "Remove Current Fabric succeeded."); + } + else { ChipLogError(Controller, "Remove Current Fabric Failed : %" CHIP_ERROR_FORMAT, err.Format()); }