diff --git a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp index 82ad50f5f7039f..3d02c50c0ba524 100644 --- a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp +++ b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp @@ -191,11 +191,7 @@ void BDXDiagnosticLogsProvider::OnAckReceived() // If the buffer has empty space, end the log collection session. if (isEndOfLog) { - err = mDelegate->EndLogCollection(mLogSessionHandle, err); - if (err == CHIP_ERROR_NOT_IMPLEMENTED) - { - ChipLogError(DeviceLayer, "EndLogCollection not implemented in the delegate. Falling back to default behavior."); - } + err = mDelegate->EndLogCollection(mLogSessionHandle); mLogSessionHandle = kInvalidLogSessionHandle; } @@ -284,10 +280,6 @@ void BDXDiagnosticLogsProvider::Reset(CHIP_ERROR error) if (mDelegate != nullptr) { CHIP_ERROR err = mDelegate->EndLogCollection(mLogSessionHandle, error); - if (err == CHIP_ERROR_NOT_IMPLEMENTED) - { - ChipLogError(DeviceLayer, "EndLogCollection not implemented in the delegate. Falling back to default behavior."); - } mDelegate = nullptr; }