Skip to content

Commit de52717

Browse files
committed
added error code on logs when generating events fails
1 parent ed1bbac commit de52717

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
@@ -145,7 +145,7 @@ static bool emitDSTTableEmptyEvent(EndpointId ep)
145145

146146
if (CHIP_NO_ERROR != error)
147147
{
148-
ChipLogError(Zcl, "DSTTableEmptyEvent failed");
148+
ChipLogError(Zcl, "DSTTableEmptyEvent failed: %" CHIP_ERROR_FORMAT, error.Format());
149149
return false;
150150
}
151151
ChipLogProgress(Zcl, "DSTTableEmptyEvent");
@@ -165,7 +165,7 @@ static bool emitDSTStatusEvent(EndpointId ep, bool dstOffsetActive)
165165

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

@@ -191,7 +191,7 @@ static bool emitTimeZoneStatusEvent(EndpointId ep)
191191

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

@@ -208,7 +208,7 @@ static bool emitTimeFailureEvent(EndpointId ep)
208208

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

0 commit comments

Comments
 (0)