Skip to content

Commit 3811778

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Log the error when UpdateUTCTime fails. (#31880)
Saying "error" without saying which error is a bit hostile to log-based debugging.
1 parent 3e35e60 commit 3811778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/clusters/time-synchronization-server/time-synchronization-server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ CHIP_ERROR TimeSynchronizationServer::SetUTCTime(EndpointId ep, uint64_t utcTime
773773
CHIP_ERROR err = UpdateUTCTime(utcTime);
774774
if (err != CHIP_NO_ERROR && !RuntimeOptionsProvider::Instance().GetSimulateNoInternalTime())
775775
{
776-
ChipLogError(Zcl, "Error setting UTC time on the device");
776+
ChipLogError(Zcl, "Error setting UTC time on the device: %" CHIP_ERROR_FORMAT, err.Format());
777777
return err;
778778
}
779779
GetDelegate()->UTCTimeAvailabilityChanged(utcTime);

0 commit comments

Comments
 (0)