Skip to content

Commit 8f70bc8

Browse files
Add log per review comment.
1 parent 3e6de54 commit 8f70bc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

+2
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ + (MTRDevice *)deviceWithNodeID:(NSNumber *)nodeID controller:(MTRDeviceControll
311311
// dispatch with bad values). While we promise to not return nil from
312312
// this method, if the caller is ignoring the nullability API contract,
313313
// there's not much we can do here.
314+
MTR_LOG_ERROR("Can't create device with nodeID: %@, controller: %@",
315+
nodeID, controller);
314316
return nil;
315317
}
316318

0 commit comments

Comments
 (0)