Merge pull request #3004 from Philoul/Fix/log
Remove bytearray data from log
This commit is contained in:
commit
5d62ad1729
|
@ -143,7 +143,7 @@ class DataLayerListenerServiceMobile : WearableListenerService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
rxDataPath -> {
|
rxDataPath -> {
|
||||||
aapsLogger.debug(LTag.WEAR, "onMessageReceived rxDataPath: ${String(messageEvent.data)}")
|
aapsLogger.debug(LTag.WEAR, "onMessageReceived rxDataPath: ${messageEvent.data.size}")
|
||||||
val command = EventData.deserializeByte(messageEvent.data)
|
val command = EventData.deserializeByte(messageEvent.data)
|
||||||
rxBus.send(command.also { it.sourceNodeId = messageEvent.sourceNodeId })
|
rxBus.send(command.also { it.sourceNodeId = messageEvent.sourceNodeId })
|
||||||
}
|
}
|
||||||
|
@ -213,13 +213,13 @@ class DataLayerListenerServiceMobile : WearableListenerService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun sendMessage(path: String, data: ByteArray) {
|
private fun sendMessage(path: String, data: ByteArray) {
|
||||||
aapsLogger.debug(LTag.WEAR, "sendMessage: $path")
|
aapsLogger.debug(LTag.WEAR, "sendMessage: $path ${data.size}")
|
||||||
transcriptionNodeId?.also { nodeId ->
|
transcriptionNodeId?.also { nodeId ->
|
||||||
messageClient
|
messageClient
|
||||||
.sendMessage(nodeId, path, data).apply {
|
.sendMessage(nodeId, path, data).apply {
|
||||||
addOnSuccessListener { }
|
addOnSuccessListener { }
|
||||||
addOnFailureListener {
|
addOnFailureListener {
|
||||||
aapsLogger.debug(LTag.WEAR, "sendMessage: $path failure")
|
aapsLogger.debug(LTag.WEAR, "sendMessage: $path failure ${data.size}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,15 +206,15 @@ class DataLayerListenerServiceWear : WearableListenerService() {
|
||||||
} ?: aapsLogger.debug(LTag.WEAR, "sendMessage: Ignoring message. No node selected.")
|
} ?: aapsLogger.debug(LTag.WEAR, "sendMessage: Ignoring message. No node selected.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("unused")
|
|
||||||
private fun sendMessage(path: String, data: ByteArray) {
|
private fun sendMessage(path: String, data: ByteArray) {
|
||||||
aapsLogger.debug(LTag.WEAR, "sendMessage: $path")
|
aapsLogger.debug(LTag.WEAR, "sendMessage: $path ${data.size}")
|
||||||
transcriptionNodeId?.also { nodeId ->
|
transcriptionNodeId?.also { nodeId ->
|
||||||
messageClient
|
messageClient
|
||||||
.sendMessage(nodeId, path, data).apply {
|
.sendMessage(nodeId, path, data).apply {
|
||||||
addOnSuccessListener { }
|
addOnSuccessListener { }
|
||||||
addOnFailureListener {
|
addOnFailureListener {
|
||||||
aapsLogger.debug(LTag.WEAR, "sendMessage: $path failure")
|
aapsLogger.debug(LTag.WEAR, "sendMessage: $path failure ${data.size}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue