- Minor logging changes.

This commit is contained in:
Juha Heinanen
2020-02-14 05:30:43 +02:00
parent 67a544e8e8
commit 02d2cb2ff3
2 changed files with 4 additions and 4 deletions

View File

@ -1420,7 +1420,7 @@ Java_com_tutpro_baresip_Api_contacts_1remove(JNIEnv *env, jobject thiz) {
JNIEXPORT void JNICALL
Java_com_tutpro_baresip_Api_log_1level_1set(JNIEnv *env, jobject thiz, jint level) {
const enum log_level native_level = (enum log_level)level;
LOGD("seting log level '%u'\n", native_level);
LOGD("setting log level to '%u'\n", native_level);
log_level_set(native_level);
}

View File

@ -91,7 +91,7 @@ class BaresipService: Service() {
((Build.VERSION.SDK_INT < 23) &&
(cm.activeNetworkInfo.toString() ==
cm.getNetworkInfo(network).toString()))) {
Log.d(LOG_TAG, "Active network $network@$interfaceName " +
Log.i(LOG_TAG, "Active network $network@$interfaceName " +
" is available: $linkProperties")
activeNetwork = "$network"
if (isServiceRunning) {
@ -101,7 +101,7 @@ class BaresipService: Service() {
linkAddresses = linkProperties.linkAddresses
}
} else {
Log.d(LOG_TAG, "Non-active network $network@$interfaceName " +
Log.i(LOG_TAG, "Non-active network $network@$interfaceName " +
" is available: $linkProperties")
}
}
@ -152,7 +152,7 @@ class BaresipService: Service() {
linkAddresses = linkProperties.linkAddresses
}
} else {
Log.e(LOG_TAG, "Network $network@$interfaceName " +
Log.d(LOG_TAG, "Network $network@$interfaceName " +
" link properties changed: $linkProperties")
}
}