Skip to content

Commit ac7f062

Browse files
authoredJan 16, 2025
Log cluster/command names in MTRBaseDevice invoke. (#37090)
We were doing this in MTRDevice already, but not in MTRBaseDevice.
1 parent 184127e commit ac7f062

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/darwin/Framework/CHIP/MTRBaseDevice.mm

+4-1
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,10 @@ - (void)_invokeCommandWithEndpointID:(NSNumber *)endpointID
14451445
}
14461446

14471447
if (logCall) {
1448-
MTR_LOG("%@ invoke %@ 0x%llx 0x%llx: %@", self, endpointID, clusterID.unsignedLongLongValue, commandID.unsignedLongLongValue, commandFields);
1448+
MTR_LOG("%@ invoke %@ 0x%llx (%@) 0x%llx (%@): %@", self, endpointID,
1449+
clusterID.unsignedLongLongValue, MTRClusterNameForID(static_cast<MTRClusterIDType>(clusterID.unsignedLongLongValue)),
1450+
commandID.unsignedLongLongValue, MTRRequestCommandNameForID(static_cast<MTRClusterIDType>(clusterID.unsignedLongLongValue), static_cast<MTRCommandIDType>(commandID.unsignedLongLongValue)),
1451+
commandFields);
14491452
}
14501453

14511454
auto * bridge = new MTRDataValueDictionaryCallbackBridge(queue, completion,

0 commit comments

Comments
 (0)