fix log enablement

This commit is contained in:
Jehan Monnier 2018-05-31 16:34:47 +02:00
parent 3f12a347bd
commit 10fe800656
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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