fix(transport): Kable BLE audit + thread-safety, MQTT, and logging fixes across transport layers (#5071)

This commit is contained in:
James Rich 2026-04-11 17:56:29 -05:00 committed by GitHub
parent 5f0e60eb21
commit a3c0a4832d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 1123 additions and 513 deletions

View file

@ -40,6 +40,7 @@ import okio.Path.Companion.toOkioPath
import org.koin.core.annotation.Module
import org.koin.core.annotation.Single
import org.meshtastic.core.common.BuildConfigProvider
import org.meshtastic.core.network.KermitHttpLogger
private const val DISK_CACHE_PERCENT = 0.02
private const val MEMORY_CACHE_PERCENT = 0.25
@ -84,7 +85,10 @@ class NetworkModule {
HttpClient(engineFactory = Android) {
install(plugin = ContentNegotiation) { json(json) }
if (buildConfigProvider.isDebug) {
install(plugin = Logging) { level = LogLevel.BODY }
install(plugin = Logging) {
logger = KermitHttpLogger
level = LogLevel.BODY
}
}
}
}