From 109b74328eb2173108620e62707e05d123990d03 Mon Sep 17 00:00:00 2001 From: esp Date: Mon, 23 Dec 2024 12:07:36 +0530 Subject: [PATCH] BDX: modify EndLogCollection parameter for internal log end requests --- .../esp32/main/diagnostic-logs-provider-delegate-impl.cpp | 2 +- .../diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp b/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp index df0c6b589a00cc..705c2f653c9d8f 100644 --- a/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp +++ b/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp @@ -281,7 +281,7 @@ CHIP_ERROR LogProvider::EndLogCollection(LogSessionHandle sessionHandle, CHIP_ER if (error != CHIP_NO_ERROR) { // Handle the error - ChipLogError(DeviceLayer, "End log collection reason: %s", ErrorStr(error)); + ChipLogProgress(DeviceLayer, "End log collection reason: %s", ErrorStr(error)); } VerifyOrReturnValue(sessionHandle != kInvalidLogSessionHandle, CHIP_ERROR_INVALID_ARGUMENT); VerifyOrReturnValue(mSessionContextMap.count(sessionHandle), CHIP_ERROR_INVALID_ARGUMENT); diff --git a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp index 83c43e3919215e..fc231531e56d95 100644 --- a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp +++ b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp @@ -191,7 +191,7 @@ void BDXDiagnosticLogsProvider::OnAckReceived() // If the buffer has empty space, end the log collection session. if (isEndOfLog) { - mDelegate->EndLogCollection(mLogSessionHandle); + mDelegate->EndLogCollection(mLogSessionHandle, CHIP_ERROR_INTERNAL); mLogSessionHandle = kInvalidLogSessionHandle; }