Skip to content

Commit

Permalink
fix: remove unnecessary chip log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
esp committed Dec 20, 2024
1 parent 5154436 commit 3a7a394
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 3a7a394

Please sign in to comment.