mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 02:05:20 +00:00
logging
This commit is contained in:
@@ -55,6 +55,26 @@ class BluetoothMeshService(private val context: Context) {
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
setupDelegates()
|
setupDelegates()
|
||||||
|
startPeriodicDebugLogging()
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start periodic debug logging every 10 seconds
|
||||||
|
*/
|
||||||
|
private fun startPeriodicDebugLogging() {
|
||||||
|
serviceScope.launch {
|
||||||
|
while (isActive) {
|
||||||
|
try {
|
||||||
|
delay(10000) // 10 seconds
|
||||||
|
val debugInfo = getDebugStatus()
|
||||||
|
Log.d(TAG, "=== PERIODIC DEBUG STATUS ===")
|
||||||
|
Log.d(TAG, debugInfo)
|
||||||
|
Log.d(TAG, "=== END DEBUG STATUS ===")
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Log.e(TAG, "Error in periodic debug logging: ${e.message}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user