Skip to content

Commit e5ee87b

Browse files
committed
added error code on logs when generating events fails
1 parent cffdbbd commit e5ee87b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static bool emitDSTTableEmptyEvent(EndpointId ep)
144144

145145
if (CHIP_NO_ERROR != error)
146146
{
147-
ChipLogError(Zcl, "DSTTableEmptyEvent failed");
147+
ChipLogError(Zcl, "DSTTableEmptyEvent failed: %" CHIP_ERROR_FORMAT, error.Format());
148148
return false;
149149
}
150150
ChipLogProgress(Zcl, "DSTTableEmptyEvent");
@@ -164,7 +164,7 @@ static bool emitDSTStatusEvent(EndpointId ep, bool dstOffsetActive)
164164

165165
if (CHIP_NO_ERROR != error)
166166
{
167-
ChipLogError(Zcl, "DSTStatusEvent failed");
167+
ChipLogError(Zcl, "DSTStatusEvent failed: %" CHIP_ERROR_FORMAT, error.Format());
168168
return false;
169169
}
170170

@@ -190,7 +190,7 @@ static bool emitTimeZoneStatusEvent(EndpointId ep)
190190

191191
if (CHIP_NO_ERROR != error)
192192
{
193-
ChipLogError(Zcl, "TimeZoneStatusEvent failed");
193+
ChipLogError(Zcl, "TimeZoneStatusEvent failed: %" CHIP_ERROR_FORMAT, error.Format());
194194
return false;
195195
}
196196

@@ -207,7 +207,7 @@ static bool emitTimeFailureEvent(EndpointId ep)
207207

208208
if (CHIP_NO_ERROR != error)
209209
{
210-
ChipLogError(Zcl, "TimeFailureEvent failed");
210+
ChipLogError(Zcl, "TimeFailureEvent failed: %" CHIP_ERROR_FORMAT, error.Format());
211211
return false;
212212
}
213213

0 commit comments

Comments
 (0)