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