Skip to content

Commit

Permalink
BDX: modify EndLogCollection parameter for internal log end requests
Browse files Browse the repository at this point in the history
  • Loading branch information
esp committed Dec 23, 2024
1 parent 433b19d commit 109b743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 109b743

Please sign in to comment.