liblinphoneTester: fix compilation

This commit is contained in:
Gautier Pelloux-Prayer 2016-01-18 17:33:30 +01:00
parent 83922f2d60
commit fb8ec27bbb
3 changed files with 4 additions and 4 deletions

View file

@ -314,9 +314,9 @@ static UICompositeViewDescription *compositeDescription = nil;
(debugEnabled ? NSLocalizedString(@"Disable logs", nil) : NSLocalizedString(@"Enable logs", nil));
[alertView addButtonWithTitle:actionLog
block:^{
// enable / disable
BOOL enableDebug = !debugEnabled;
[Log enableLogs:enableDebug];
BOOL enabled = !debugEnabled;
[LinphoneManager.instance lpConfigSetBool:enabled forKey:@"debugenable_preference"];
[Log enableLogs:enabled];
}];
[alertView show];

View file

@ -415,6 +415,7 @@ static UICompositeViewDescription *compositeDescription = nil;
[keys addObject:@"send_logs_button"];
[keys addObject:@"reset_logs_button"];
[Log enableLogs:debugEnabled];
[LinphoneManager.instance lpConfigSetBool:debugEnabled forKey:@"debugenable_preference"];
} 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) {

View file

@ -56,7 +56,6 @@
}
+ (void)enableLogs:(BOOL)enabled {
[LinphoneManager.instance lpConfigSetBool:enabled forKey:@"debugenable_preference"];
linphone_core_enable_logs_with_cb((OrtpLogFunc)linphone_iphone_log_handler);
if (enabled) {
NSLog(@"Enabling debug logs");