From a82927c1f69f1650db81b244c9504e756e4489a7 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 26 Jun 2024 23:56:30 +1000 Subject: [PATCH] Reduce DNS query debugging --- app/Classes/Protocol.php | 2 +- app/Classes/Protocol/DNS.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Classes/Protocol.php b/app/Classes/Protocol.php index 64af5ee..65ae2f2 100644 --- a/app/Classes/Protocol.php +++ b/app/Classes/Protocol.php @@ -259,7 +259,7 @@ abstract class Protocol throw new SocketException(SocketException::CANT_ACCEPT,'Could not fork process'); if ($pid) - Log::info(sprintf('%s:+ New connection, thread [%d] created',self::LOGKEY,$pid)); + Log::debug(sprintf('%s:+ New connection, thread [%d] created',self::LOGKEY,$pid)); // Parent return ready for next connection return $pid; diff --git a/app/Classes/Protocol/DNS.php b/app/Classes/Protocol/DNS.php index 309bb15..190b3c7 100644 --- a/app/Classes/Protocol/DNS.php +++ b/app/Classes/Protocol/DNS.php @@ -73,7 +73,7 @@ final class DNS extends BaseProtocol $this->client = $client; $this->protocol_session(); - Log::info(sprintf('%s:= onConnect - Connection closed [%s]',self::LOGKEY,$client->address_remote)); + Log::debug(sprintf('%s:= onConnect - Connection closed [%s]',self::LOGKEY,$client->address_remote)); exit(0); } @@ -167,7 +167,7 @@ final class DNS extends BaseProtocol case self::DNS_TYPE_AAAA: case self::DNS_TYPE_SRV: case self::DNS_TYPE_TXT: - Log::info(sprintf('%s:= Looking for record [%s] for [%s]',self::LOGKEY,$this->query->type,$this->query->domain)); + Log::debug(sprintf('%s:= Looking for record [%s] for [%s]',self::LOGKEY,$this->query->type,$this->query->domain)); $labels = clone($this->query->labels); $mailer = '';