protected function log(RequestInterface $request, $delay)
    {
        if (isset($this->logger)) {
            $level   = $this->getLogLevel($request);
            $message = $this->getLogMessage($request, $delay);
            $context = compact('request', 'delay');

            $this->logger->log($level, $message, $context);
        }
    }
protected function log(RequestInterface $request, $delay)
    {
        if (isset($this->logger)) {
            $level   = $this->getLogLevel($request);
            $message = $this->getLogMessage($request, $delay);
            $context = compact('request', 'delay');

            $this->logger->log($level, $message, $context);
        }
    }
protected function log ( RequestInterface $ request , $ delay ) { if ( isset ( $ this -> logger ) ) { $ level = $ this -> getLogLevel ( $ request ) ; $ message = $ this -> getLogMessage ( $ request , $ delay ) ; $ context = compact ( 'request' , 'delay' ) ; $ this -> logger -> log ( $ level , $ message , $ context ) ; } }
Logs a request which is being delayed by a specified amount of time.

@param RequestInterface $request request being delayed.
@param float            $delay   The amount of time that the request is delayed for.
Logs a request which is being delayed by a specified amount of time .