better verbose logging (#431)

This commit is contained in:
callebtc
2025-09-15 01:31:32 +02:00
committed by GitHub
parent c2609643da
commit 4eda850110
2 changed files with 27 additions and 12 deletions
@@ -1,3 +1,4 @@
package com.bitchat.android.mesh
import android.bluetooth.BluetoothDevice
@@ -70,6 +71,7 @@ class BluetoothPacketBroadcaster(
try {
val fromNick = incomingPeer?.let { nicknameResolver?.invoke(it) }
val toNick = toPeer?.let { nicknameResolver?.invoke(it) }
val isRelay = (incomingAddr != null || incomingPeer != null)
com.bitchat.android.ui.debug.DebugSettingsManager.getInstance().logPacketRelayDetailed(
packetType = typeName,
@@ -81,7 +83,8 @@ class BluetoothPacketBroadcaster(
toPeerID = toPeer,
toNickname = toNick,
toDeviceAddress = toDeviceAddress,
ttl = ttl
ttl = ttl,
isRelay = isRelay
)
} catch (_: Exception) {
// Silently ignore debug logging failures