diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index d21d529cd..b33b56c56 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1441,7 +1441,7 @@ static BOOL libStarted = FALSE; return; } linphone_core_set_log_collection_path([[LinphoneManager cacheDirectory] UTF8String]); - [Log enableLogs:([self lpConfigBoolForKey:@"debugenable_preference"] || LinphoneManager.instance.isTesting)]; + [Log enableLogs:[self lpConfigBoolForKey:@"debugenable_preference"]]; connectivity = none; ms_init(); // Need to initialize mediastreamer2 before loading the plugins diff --git a/Classes/SettingsView.m b/Classes/SettingsView.m index f25e62394..5973357f2 100644 --- a/Classes/SettingsView.m +++ b/Classes/SettingsView.m @@ -414,7 +414,7 @@ static UICompositeViewDescription *compositeDescription = nil; removeFromHiddenKeys = debugEnabled; [keys addObject:@"send_logs_button"]; [keys addObject:@"reset_logs_button"]; - [Log enableLogs:(debugEnabled || LinphoneManager.instance.isTesting)]; + [Log enableLogs:debugEnabled]; } else if ([@"account_mandatory_advanced_preference" compare:notif.object] == NSOrderedSame) { removeFromHiddenKeys = [[notif.userInfo objectForKey:@"account_mandatory_advanced_preference"] boolValue]; for (NSString *key in settingsStore->dict) {