Changing File/Send debugging to make it clear it is content read/open, not a network read/open
This commit is contained in:
parent
173446edbe
commit
b9603e4bb8
@ -224,12 +224,12 @@ class Send extends Base
|
||||
*/
|
||||
public function open(string $compress=''): bool
|
||||
{
|
||||
Log::debug(sprintf('%s:+ Opening file to send',self::LOGKEY));
|
||||
Log::debug(sprintf('%s:+ File Open to send',self::LOGKEY));
|
||||
|
||||
if ((($this->index=$this->list->search(function($item) { return $item->complete === FALSE; })) !== FALSE)
|
||||
&& $this->sending->open())
|
||||
{
|
||||
Log::info(sprintf('%s:- Sending item #%d (%s) with size [%d]',self::LOGKEY,$this->index,$this->sending->nameas,$this->sending->size));
|
||||
Log::info(sprintf('%s:- Content Send item [#%d] (%s) with size [%d]',self::LOGKEY,$this->index,$this->sending->nameas,$this->sending->size));
|
||||
|
||||
$this->pos = 0;
|
||||
$this->start = time();
|
||||
@ -303,7 +303,7 @@ class Send extends Base
|
||||
|
||||
$this->pos += strlen($data);
|
||||
|
||||
Log::debug(sprintf('%s:- Read [%d] bytes, file pos now [%d]',self::LOGKEY,strlen($data),$this->pos));
|
||||
Log::debug(sprintf('%s:- Content Read [%d] bytes, pos now [%d]',self::LOGKEY,strlen($data),$this->pos));
|
||||
|
||||
return $data;
|
||||
}
|
||||
@ -323,7 +323,7 @@ class Send extends Base
|
||||
if ($this->sending->seek($pos)) {
|
||||
$this->pos = $pos;
|
||||
|
||||
Log::debug(sprintf('%s:= Seeked to [%d]',self::LOGKEY,$this->pos));
|
||||
Log::debug(sprintf('%s:= Content Seek to [%d]',self::LOGKEY,$this->pos));
|
||||
|
||||
return TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user