mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Fix log collection
This commit is contained in:
parent
279d7928a2
commit
64ee7f1c98
2 changed files with 2 additions and 1 deletions
|
|
@ -444,6 +444,7 @@ public class LinphoneManager implements LinphoneCoreListener {
|
|||
//traces alway start with traces enable to not missed first initialization
|
||||
boolean isDebugLogEnabled = !(mR.getBoolean(R.bool.disable_every_log));
|
||||
LinphoneCoreFactory.instance().setDebugMode(isDebugLogEnabled, getString(R.string.app_name));
|
||||
LinphoneCoreFactory.instance().enableLogCollection(isDebugLogEnabled);
|
||||
|
||||
mLc = LinphoneCoreFactory.instance().createLinphoneCore(this, mLinphoneConfigFile, mLinphoneFactoryConfigFile, null, c);
|
||||
|
||||
|
|
@ -479,6 +480,7 @@ public class LinphoneManager implements LinphoneCoreListener {
|
|||
private synchronized void initLiblinphone() throws LinphoneCoreException {
|
||||
boolean isDebugLogEnabled = !(mR.getBoolean(R.bool.disable_every_log)) && mPrefs.isDebugEnabled();
|
||||
LinphoneCoreFactory.instance().setDebugMode(isDebugLogEnabled, getString(R.string.app_name));
|
||||
LinphoneCoreFactory.instance().enableLogCollection(isDebugLogEnabled);
|
||||
|
||||
PreferencesMigrator prefMigrator = new PreferencesMigrator(mServiceContext);
|
||||
prefMigrator.migrateRemoteProvisioningUriIfNeeded();
|
||||
|
|
|
|||
|
|
@ -136,7 +136,6 @@ public final class LinphoneService extends Service {
|
|||
mNotificationTitle = getString(R.string.service_name);
|
||||
|
||||
// Needed in order for the two next calls to succeed, libraries must have been loaded first
|
||||
LinphoneCoreFactory.instance();
|
||||
LinphoneCoreFactory.instance().setLogCollectionPath(getFilesDir().getAbsolutePath());
|
||||
LinphoneCoreFactory.instance().enableLogCollection(!(getResources().getBoolean(R.bool.disable_every_log)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue