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
{
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);
@ -456,7 +456,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
$so->addresses()->save($ao);
Log::alert(sprintf('%s: - To FTN is not defined, creating new entry for [%s] (%d)',self::LOGKEY,$msg->tboss,$ao->id));
Log::alert(sprintf('%s:- To FTN is not defined, creating new entry for [%s] (%d)',self::LOGKEY,$msg->tboss,$ao->id));
}
if ($msg->errors->messages()->has('from') && $msg->tzone) {
@ -491,7 +491,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
$so->addresses()->save($ao);
Log::alert(sprintf('%s: - From FTN is not defined, creating new entry for [%s] (%d)',self::LOGKEY,$msg->fboss,$ao->id));
Log::alert(sprintf('%s:- From FTN is not defined, creating new entry for [%s] (%d)',self::LOGKEY,$msg->fboss,$ao->id));
}
if ($msg->errors->messages()->has('user_from') || $msg->errors->messages()->has('user_to')) {

View File

@ -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;

View File

@ -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) {