mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Comment out debug logging for CoT messages in TAKMeshIntegration and TAKClientConnection
This commit is contained in:
parent
2d26621a35
commit
8730124e62
2 changed files with 5 additions and 5 deletions
|
|
@ -142,7 +142,7 @@ class TAKMeshIntegration(
|
|||
// Strip non-essential elements before compression to save wire bytes
|
||||
val xml = stripNonEssentialElements(freshXml)
|
||||
|
||||
Logger.d { "RAW CoT OUT (mesh, ${cotMessage.type}): $rawXml" }
|
||||
// Logger.d { "RAW CoT OUT (mesh, ${cotMessage.type}): $rawXml" }
|
||||
|
||||
// Route through the SDK parser/compressor which handles all typed
|
||||
// payloads (DrawnShape, Marker, Route, Aircraft, etc.) with compact
|
||||
|
|
@ -239,7 +239,7 @@ class TAKMeshIntegration(
|
|||
.replace("""<?xml version="1.0" encoding="UTF-8"?>""", "")
|
||||
.replace(Regex("""\s*\n\s*"""), "")
|
||||
.trim()
|
||||
Logger.d { "RAW CoT IN (mesh): $xml" }
|
||||
// Logger.d { "RAW CoT IN (mesh): $xml" }
|
||||
// Routes: ATAK ignores b-m-r CoT events over TCP streaming.
|
||||
// Convert to a KML data package and write to ATAK's auto-import dir.
|
||||
if (xml.contains("""type="b-m-r"""")) {
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ internal class TAKClientConnection(
|
|||
// Emitted at debug level so it's always available in logcat for field
|
||||
// debugging without needing a release rebuild. Not truncated — the
|
||||
// reader of this log needs the complete event to reproduce issues.
|
||||
Logger.d { "RAW CoT IN (TCP ${currentClientInfo.id}): $xmlString" }
|
||||
// Logger.d { "RAW CoT IN (TCP ${currentClientInfo.id}): $xmlString" }
|
||||
|
||||
val parser = CoTXmlParser(xmlString)
|
||||
val result = parser.parse()
|
||||
|
|
@ -245,7 +245,7 @@ internal class TAKClientConnection(
|
|||
// CoTMessage → XML round trip. This is the exact bytes the client
|
||||
// will receive, so logging here closes the debugging loop with the
|
||||
// matching RAW CoT IN line on the receiver.
|
||||
Logger.d { "RAW CoT OUT (TCP ${currentClientInfo.id}): $xml" }
|
||||
// Logger.d { "RAW CoT OUT (TCP ${currentClientInfo.id}): $xml" }
|
||||
sendXmlInternal(xml)
|
||||
}
|
||||
|
||||
|
|
@ -261,7 +261,7 @@ internal class TAKClientConnection(
|
|||
/** Send raw XML directly to this client. Used for mesh-originated messages
|
||||
* that bypass CoTMessage parsing to preserve shape detail elements. */
|
||||
fun sendRawXml(xml: String) {
|
||||
Logger.d { "RAW CoT OUT (TCP ${currentClientInfo.id}): [raw] $xml" }
|
||||
// Logger.d { "RAW CoT OUT (TCP ${currentClientInfo.id}): [raw] $xml" }
|
||||
sendXmlInternal(xml)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue