Neos\Flow\Session\Aspect\LoggingAspect::logCollectGarbage PHP Метод

logCollectGarbage() публичный Метод

Logs calls of collectGarbage()
public logCollectGarbage ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
Результат void
    public function logCollectGarbage(JoinPointInterface $joinPoint)
    {
        $sessionRemovalCount = $joinPoint->getResult();
        if ($sessionRemovalCount > 0) {
            $this->systemLogger->log(sprintf('%s: Triggered garbage collection and removed %s expired sessions.', $this->getClassName($joinPoint), $sessionRemovalCount), LOG_INFO);
        } elseif ($sessionRemovalCount === 0) {
            $this->systemLogger->log(sprintf('%s: Triggered garbage collection but no sessions needed to be removed.', $this->getClassName($joinPoint)), LOG_INFO);
        } elseif ($sessionRemovalCount === false) {
            $this->systemLogger->log(sprintf('%s: Ommitting garbage collection because another process is already running. Consider lowering the GC propability if these messages appear a lot.', $this->getClassName($joinPoint)), LOG_WARNING);
        }
    }