From 3811778b5f8ea40849cf9555130e38636454617c Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 2 Feb 2024 16:06:37 -0500 Subject: [PATCH] Log the error when UpdateUTCTime fails. (#31880) Saying "error" without saying which error is a bit hostile to log-based debugging. --- .../time-synchronization-server/time-synchronization-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp b/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp index 217f44a3c61df2..8e919ef5bb7976 100644 --- a/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp +++ b/src/app/clusters/time-synchronization-server/time-synchronization-server.cpp @@ -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);