Skip to content

Commit

Permalink
Small logging change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Revertron committed Jan 12, 2023
1 parent 7fd2227 commit 2189bfd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class ConnectionHandler(
}
MSG_TYPE_MESSAGE_TEXT -> {
val message = readMessage(dis) ?: return false
Log.i(TAG, "Got message ${message.id}")
Log.i(TAG, "Got message ${message.id}, in reply to ${message.replyTo}")
writeOk(dos, message.id)
synchronized(listener) {
peer?.let { listener.onMessageReceived(it, address, message.id, message.guid, message.replyTo, message.type, message.data) }
Expand All @@ -245,7 +245,7 @@ class ConnectionHandler(

private fun isMessageForMe(hello: ClientHello): Boolean {
val publicKey = (keyPair.public as Ed25519PublicKeyParameters).encoded
Log.i(TAG, "My ${Hex.toHexString(publicKey)} and his ${Hex.toHexString(hello.receiver)}")
Log.d(TAG, "My ${Hex.toHexString(publicKey)} and his ${Hex.toHexString(hello.receiver)}")
return publicKey.contentEquals(hello.receiver)
}

Expand Down

0 comments on commit 2189bfd

Please sign in to comment.