Changed level of pre-start log messages to info.

This commit is contained in:
Juha Heinanen
2021-11-16 16:02:15 +02:00
parent 2f24a639ce
commit 1f4453e466
@@ -324,7 +324,7 @@ class BaresipService: Service() {
val assets = arrayOf("accounts", "config", "contacts") val assets = arrayOf("accounts", "config", "contacts")
var file = File(filesPath) var file = File(filesPath)
if (!file.exists()) { if (!file.exists()) {
Log.d(TAG, "Creating baresip directory") Log.i(TAG, "Creating baresip directory")
try { try {
File(filesPath).mkdirs() File(filesPath).mkdirs()
} catch (e: Error) { } catch (e: Error) {
@@ -334,10 +334,10 @@ class BaresipService: Service() {
for (a in assets) { for (a in assets) {
file = File("${filesPath}/$a") file = File("${filesPath}/$a")
if (!file.exists()) { if (!file.exists()) {
Log.d(TAG, "Copying asset '$a'") Log.i(TAG, "Copying asset '$a'")
Utils.copyAssetToFile(applicationContext, a, "$filesPath/$a") Utils.copyAssetToFile(applicationContext, a, "$filesPath/$a")
} else { } else {
Log.d(TAG, "Asset '$a' already copied") Log.i(TAG, "Asset '$a' already copied")
} }
if (a == "config") if (a == "config")
Config.initialize() Config.initialize()
@@ -355,7 +355,7 @@ class BaresipService: Service() {
for (la in linkAddresses) for (la in linkAddresses)
addrs = "$addrs;${la.key};${la.value}" addrs = "$addrs;${la.key};${la.value}"
Log.d(TAG, "Link addresses: $addrs") Log.i(TAG, "Link addresses: $addrs")
Thread { Thread {
baresipStart(filesPath, addrs.removePrefix(";"), logLevel) baresipStart(filesPath, addrs.removePrefix(";"), logLevel)