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

@@ -273,7 +273,9 @@ final class Send extends Item
}
$this->file_pos += strlen($data);
Log::debug(sprintf('%s: - Read [%d] bytes, file pos now [%d]',self::LOGKEY,strlen($data),$this->file_pos));
if ($this->DEBUG)
Log::debug(sprintf('%s: - Read [%d] bytes, file pos now [%d]',self::LOGKEY,strlen($data),$this->file_pos));
if ($data === FALSE)
throw new UnreadableFileEncountered('Error reading file: '.$this->sending->file_name);