Skip to content

Commit

Permalink
Log the error when UpdateUTCTime fails. (#31880)
Browse files Browse the repository at this point in the history
Saying "error" without saying which error is a bit hostile to log-based
debugging.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Apr 10, 2024
1 parent 3e35e60 commit 3811778
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ CHIP_ERROR TimeSynchronizationServer::SetUTCTime(EndpointId ep, uint64_t utcTime
CHIP_ERROR err = UpdateUTCTime(utcTime);
if (err != CHIP_NO_ERROR && !RuntimeOptionsProvider::Instance().GetSimulateNoInternalTime())
{
ChipLogError(Zcl, "Error setting UTC time on the device");
ChipLogError(Zcl, "Error setting UTC time on the device: %" CHIP_ERROR_FORMAT, err.Format());
return err;
}
GetDelegate()->UTCTimeAvailabilityChanged(utcTime);
Expand Down

0 comments on commit 3811778

Please sign in to comment.