Skip to content

Commit

Permalink
[OTA] Issue#13839 - Adding logging to OTA Provider (#14810)
Browse files Browse the repository at this point in the history
Add logging to ApplyUpdateRequest and NotifyUpdateApplied.
  • Loading branch information
isiu-apple authored Feb 5, 2022
1 parent e94c9a9 commit a932c01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/clusters/ota-provider/ota-provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ bool emberAfOtaSoftwareUpdateProviderClusterApplyUpdateRequestCallback(
EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS;
OTAProviderDelegate * delegate = GetDelegate(endpoint);

ChipLogDetail(Zcl, "OTA Provider received ApplyUpdateRequest");
ChipLogProgress(Zcl, "OTA Provider received ApplyUpdateRequest");
ChipLogDetail(Zcl, " Update Token: %zu", commandData.updateToken.size());
ChipLogDetail(Zcl, " New Version: %" PRIu32, commandData.newVersion);

if (SendStatusIfDelegateNull(endpoint))
{
Expand Down Expand Up @@ -121,7 +123,9 @@ bool emberAfOtaSoftwareUpdateProviderClusterNotifyUpdateAppliedCallback(
EmberAfStatus status = EMBER_ZCL_STATUS_SUCCESS;
OTAProviderDelegate * delegate = GetDelegate(endpoint);

ChipLogDetail(Zcl, "OTA Provider received NotifyUpdateApplied");
ChipLogProgress(Zcl, "OTA Provider received NotifyUpdateApplied");
ChipLogDetail(Zcl, " Update Token: %zu", commandData.updateToken.size());
ChipLogDetail(Zcl, " Software Version: %" PRIu32, commandData.softwareVersion);

if (SendStatusIfDelegateNull(endpoint))
{
Expand Down

0 comments on commit a932c01

Please sign in to comment.