mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-25 10:18:34 +00:00
add log
This commit is contained in:
parent
d3486aa40a
commit
84ef68ebc1
1 changed files with 2 additions and 0 deletions
|
|
@ -46,11 +46,13 @@ Core::Core (LinphoneCore *cCore) : Object(*new CorePrivate) {
|
||||||
strcmp(lp_config_get_string(linphone_core_get_config(d->cCore), "server", "db_backend", NULL), "mysql") == 0
|
strcmp(lp_config_get_string(linphone_core_get_config(d->cCore), "server", "db_backend", NULL), "mysql") == 0
|
||||||
? MainDb::Mysql
|
? MainDb::Mysql
|
||||||
: MainDb::Sqlite3;
|
: MainDb::Sqlite3;
|
||||||
|
lInfo << "Creating linphone.db at : " << uri;
|
||||||
d->mainDb.connect(backend, uri);
|
d->mainDb.connect(backend, uri);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static string path = getDataPath() + "/linphone.db";
|
static string path = getDataPath() + "/linphone.db";
|
||||||
|
lInfo << "Creating linphone.db at : " << path;
|
||||||
d->mainDb.connect(MainDb::Sqlite3, path);
|
d->mainDb.connect(MainDb::Sqlite3, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue