@@ -295,6 +295,7 @@ - (void)shutdown
295
295
return ;
296
296
}
297
297
298
+ MTR_LOG (" Shutting down MTRDeviceController: %@" , self);
298
299
[self cleanupAfterStartup ];
299
300
}
300
301
@@ -306,6 +307,7 @@ - (void)cleanupAfterStartup
306
307
// do the secure session shutdowns. Since we don't want to hold the lock
307
308
// while calling out into arbitrary invalidation code, snapshot the list of
308
309
// devices before we start invalidating.
310
+ MTR_LOG (" cleanupAfterStartup MTRDeviceController: %@" , self);
309
311
os_unfair_lock_lock (&_deviceMapLock);
310
312
NSEnumerator * devices = [_nodeIDToDeviceMap objectEnumerator ];
311
313
[_nodeIDToDeviceMap removeAllObjects ];
@@ -323,6 +325,7 @@ - (void)cleanupAfterStartup
323
325
// in a very specific way that only MTRDeviceControllerFactory knows about.
324
326
- (void )shutDownCppController
325
327
{
328
+ MTR_LOG (" shutDownCppController MTRDeviceController: %p" , self);
326
329
assertChipStackLockedByCurrentThread ();
327
330
328
331
// Shut down all our endpoints.
@@ -624,6 +627,7 @@ - (BOOL)startup:(MTRDeviceControllerStartupParamsInternal *)startupParams
624
627
});
625
628
}];
626
629
}
630
+ MTR_LOG (" MTRDeviceController startup: %@" , self);
627
631
628
632
return YES ;
629
633
}
@@ -1259,7 +1263,7 @@ - (BOOL)checkIsRunning:(NSError * __autoreleasing *)error
1259
1263
return YES ;
1260
1264
}
1261
1265
1262
- MTR_LOG_ERROR (" Error: %s" , [kErrorNotRunning UTF8String ]);
1266
+ MTR_LOG_ERROR (" MTRDeviceController: %@ Error: %s" , self , [kErrorNotRunning UTF8String ]);
1263
1267
if (error) {
1264
1268
*error = [MTRError errorForCHIPErrorCode: CHIP_ERROR_INCORRECT_STATE];
1265
1269
}
0 commit comments