From b9603e4bb8d79c4368501a0263d72b2c56a30438 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 27 Jun 2024 15:26:28 +1000 Subject: [PATCH] Changing File/Send debugging to make it clear it is content read/open, not a network read/open --- app/Classes/File/Send.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Classes/File/Send.php b/app/Classes/File/Send.php index 9e25c7f..78a50b9 100644 --- a/app/Classes/File/Send.php +++ b/app/Classes/File/Send.php @@ -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;