Log PID created on a connection to help match the source address in logging
This commit is contained in:
parent
5d9d8ed72a
commit
6974b9b885
@ -259,7 +259,7 @@ abstract class Protocol
|
|||||||
throw new SocketException(SocketException::CANT_ACCEPT,'Could not fork process');
|
throw new SocketException(SocketException::CANT_ACCEPT,'Could not fork process');
|
||||||
|
|
||||||
if ($pid)
|
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
|
// Parent return ready for next connection
|
||||||
return $pid;
|
return $pid;
|
||||||
|
Loading…
Reference in New Issue
Block a user