From 10fe8006563ccb2c7dea9d759418ef2bb3e953d1 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Thu, 31 May 2018 16:34:47 +0200 Subject: [PATCH] fix log enablement --- Classes/LinphoneAppDelegate.m | 3 +++ Classes/LinphoneManager.m | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index aeb4553ad..3062e48b9 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -237,6 +237,9 @@ UIApplicationState state = app.applicationState; LinphoneManager *instance = [LinphoneManager instance]; + //init logs asap + [Log enableLogs:[[LinphoneManager instance] lpConfigIntForKey:@"debugenable_preference"]]; + BOOL background_mode = [instance lpConfigBoolForKey:@"backgroundmode_preference"]; BOOL start_at_boot = [instance lpConfigBoolForKey:@"start_at_boot_preference"]; [self registerForNotifications]; // Register for notifications must be done ASAP to give a chance for first SIP register to be done with right token. Specially true in case of remote provisionning or re-install with new type of signing certificate, like debug to release. diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 1ce2e05d3..ce3334db7 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1932,7 +1932,7 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat LOGI(@"linphonecore is already created"); return; } - [Log enableLogs:[self lpConfigIntForKey:@"debugenable_preference"]]; + connectivity = none; // Set audio assets