Complete of logging received and sent packet names, and display them in the web ui for each node
This commit is contained in:
@@ -41,6 +41,9 @@ final class Send extends Item
|
||||
public function __get($key)
|
||||
{
|
||||
switch ($key) {
|
||||
case 'dbids':
|
||||
return $this->sending->messages->pluck('echoarea','dbid');
|
||||
|
||||
case 'fd':
|
||||
return is_resource($this->f) ?: $this->f;
|
||||
|
||||
@@ -242,13 +245,15 @@ final class Send extends Item
|
||||
*/
|
||||
public function open(string $compress=''): bool
|
||||
{
|
||||
Log::debug(sprintf('%s:+ open',self::LOGKEY));
|
||||
Log::debug(sprintf('%s:+ Opening file to send',self::LOGKEY));
|
||||
|
||||
// If we have mail, we'll send that first
|
||||
if ($this->sending = $this->packets
|
||||
->filter(function($item) { return ($item->action & self::I_SEND) && $item->sent === FALSE; })
|
||||
->first())
|
||||
{
|
||||
Log::debug(sprintf('%s:- Sending [%s]',self::LOGKEY,$this->sending->name));
|
||||
|
||||
$this->file_pos = 0;
|
||||
$this->start = time();
|
||||
$this->f = TRUE;
|
||||
|
Reference in New Issue
Block a user