File tree 1 file changed +9
-0
lines changed
src/darwin/Framework/CHIP
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,7 @@ - (BOOL)_startControllerFactory:(MTRDeviceControllerFactoryParams *)startupParam
327
327
error : (NSError * __autoreleasing *)error
328
328
{
329
329
[self _assertCurrentQueueIsNotMatterQueue ];
330
+ [self _maybeLogBacktrace: @" Controller Factory Start" ];
330
331
331
332
__block CHIP_ERROR err = CHIP_ERROR_INTERNAL;
332
333
dispatch_sync (_chipWorkQueue, ^{
@@ -418,6 +419,7 @@ - (BOOL)_startControllerFactory:(MTRDeviceControllerFactoryParams *)startupParam
418
419
- (void )stopControllerFactory
419
420
{
420
421
[self _assertCurrentQueueIsNotMatterQueue ];
422
+ [self _maybeLogBacktrace: @" Controller Factory Stop" ];
421
423
422
424
for (MTRDeviceController * controller in [_controllers copy ]) {
423
425
[controller shutdown ];
@@ -1245,6 +1247,13 @@ - (FabricTable * _Nullable)fabricTable
1245
1247
return systemState->Fabrics ();
1246
1248
}
1247
1249
1250
+ - (void )_maybeLogBacktrace : (NSString *)message
1251
+ {
1252
+ @autoreleasepool {
1253
+ MTR_LOG (" [%@]: %@" , message, [NSThread callStackSymbols ]);
1254
+ }
1255
+ }
1256
+
1248
1257
@end
1249
1258
1250
1259
@interface MTRDummyStorage : NSObject <MTRStorage>
You can’t perform that action at this time.
0 commit comments