From 6974b9b8851f587778e274994b6589f88678c49a Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 9 Sep 2024 23:34:42 +1000 Subject: [PATCH] Log PID created on a connection to help match the source address in logging --- app/Classes/Protocol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Protocol.php b/app/Classes/Protocol.php index 5de9af3..46a2637 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::debug(sprintf('%s:+ New connection, thread [%d] created',self::LOGKEY,$pid)); + Log::info(sprintf('%s:+ New connection from [%s], thread [%d] created',self::LOGKEY,$client->address_remote,$pid)); // Parent return ready for next connection return $pid;