Replaced printLog with printDebug in clone
This commit is contained in:
parent
b27af83ae5
commit
8e9f21beee
@ -12,18 +12,18 @@ class LibSshChannelOutputStream(private val sshChannel: ssh_channel) : OutputStr
|
|||||||
private val sshLib = SSHLibrary.INSTANCE
|
private val sshLib = SSHLibrary.INSTANCE
|
||||||
|
|
||||||
override fun write(b: Int) {
|
override fun write(b: Int) {
|
||||||
printLog(TAG, "Write int")
|
printDebug(TAG, "Write int")
|
||||||
|
|
||||||
val byteArrayData = byteArrayOf(b.toByte())
|
val byteArrayData = byteArrayOf(b.toByte())
|
||||||
write(byteArrayData)
|
write(byteArrayData)
|
||||||
|
|
||||||
printLog(TAG, "Write int")
|
printDebug(TAG, "Write int")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun write(b: ByteArray) {
|
override fun write(b: ByteArray) {
|
||||||
printLog(TAG, "Write byte")
|
printDebug(TAG, "Write byte")
|
||||||
sshLib.ssh_channel_write(sshChannel, b, b.size)
|
sshLib.ssh_channel_write(sshChannel, b, b.size)
|
||||||
printLog(TAG, "Write byte finished")
|
printDebug(TAG, "Write byte finished")
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun close() {
|
override fun close() {
|
||||||
|
Loading…
Reference in New Issue
Block a user