Changing System::match() to not include NC, some debugging updates

This commit is contained in:
Deon George 2023-09-19 10:21:17 +10:00
parent 5e67be5ba1
commit 3a35bce9e7
3 changed files with 5 additions and 5 deletions

View File

@ -415,7 +415,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
*/ */
private function parseMessage(string $message): void 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); $msg = Message::parseMessage($message,$this->zone);

View File

@ -114,7 +114,7 @@ class Receive extends Base
fclose($this->f); fclose($this->f);
// Set our mtime // 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); touch($this->receiving->full_name,$this->receiving->recvmtime);
$this->f = NULL; $this->f = NULL;

View File

@ -211,7 +211,7 @@ class System extends Model
* @return Collection * @return Collection
* @todo This doesnt return sorted addresses, so it is possible that a node address is returned first, before a NC/HC, etc * @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 return $this->akas
->where(function($item) use($o) { ->where(function($item) use($o) {