Some debugging to track packet names created for sending

This commit is contained in:
Deon George
2022-01-20 22:47:44 +11:00
parent 421cd565bd
commit 98c9b880d4
3 changed files with 10 additions and 3 deletions

View File

@@ -104,11 +104,13 @@ class Packet extends FTNBase implements \Iterator, \Countable
$this->messages = collect();
$this->errors = collect();
$this->domain = NULL;
$this->name = sprintf('%08x',timew());
// If we are creating an outbound packet, we need to set our header
if ($oo && $o)
if ($oo && $o) {
$this->name = sprintf('%08x',timew());
Log::debug(sprintf('%s:Creating packet [%s]',self::LOGKEY,$this->name));
$this->newHeader($oo,$o);
}
}
/**