Reduce zmodem debugging

This commit is contained in:
Deon George
2022-12-03 01:00:45 +11:00
parent 14349adeab
commit e78b5975b0
4 changed files with 14 additions and 4 deletions

View File

@@ -172,7 +172,9 @@ final class SocketClient {
if ($this->DEBUG)
Log::debug(sprintf('%s: - Sending [%d]',self::LOGKEY,$restsize));
$rc = $this->send(substr($this->tx_buf,$tx_ptr,$restsize),0);
Log::debug(sprintf('%s: - Sent [%d] (%s)',self::LOGKEY,$rc,Str::limit($this->tx_buf,15)));
if ($this->DEBUG)
Log::debug(sprintf('%s: - Sent [%d] (%s)',self::LOGKEY,$rc,Str::limit($this->tx_buf,15)));
if ($rc == $restsize) {
$this->tx_buf = '';