Changing System::match() to not include NC, some debugging updates
This commit is contained in:
parent
5e67be5ba1
commit
3a35bce9e7
@ -415,7 +415,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
|
||||
*/
|
||||
private function parseMessage(string $message): void
|
||||
{
|
||||
Log::info(sprintf('%s:Processing message [%d] bytes',self::LOGKEY,strlen($message)));
|
||||
Log::info(sprintf('%s:+ Processing message [%d] bytes',self::LOGKEY,strlen($message)));
|
||||
|
||||
$msg = Message::parseMessage($message,$this->zone);
|
||||
|
||||
|
@ -114,7 +114,7 @@ class Receive extends Base
|
||||
|
||||
fclose($this->f);
|
||||
// Set our mtime
|
||||
Log::info(sprintf('%s:= Setting file [%s] to time [%s]',self::LOGKEY,$this->receiving->full_name,$this->receiving->recvmtime));
|
||||
Log::debug(sprintf('%s:= Setting file [%s] to time [%s]',self::LOGKEY,$this->receiving->full_name,$this->receiving->recvmtime));
|
||||
touch($this->receiving->full_name,$this->receiving->recvmtime);
|
||||
$this->f = NULL;
|
||||
|
||||
|
@ -211,7 +211,7 @@ class System extends Model
|
||||
* @return Collection
|
||||
* @todo This doesnt return sorted addresses, so it is possible that a node address is returned first, before a NC/HC, etc
|
||||
*/
|
||||
public function match(Zone $o,int $type=(Address::NODE_NC|Address::NODE_HC|Address::NODE_ACTIVE|Address::NODE_PVT|Address::NODE_POINT)): Collection
|
||||
public function match(Zone $o,int $type=(Address::NODE_HC|Address::NODE_ACTIVE|Address::NODE_PVT|Address::NODE_POINT)): Collection
|
||||
{
|
||||
return $this->akas
|
||||
->where(function($item) use($o) {
|
||||
|
Loading…
Reference in New Issue
Block a user