/**
  * @param ServerRequestInterface $request
  * @param ResponseInterface $response
  * @param Throwable $throwable
  *
  * @return ResponseInterface
  */
 public function handleThrowable(ServerRequestInterface $request, ResponseInterface $response, Throwable $throwable)
 {
     if ($level = $this->shouldLog('error')) {
         $this->logError($throwable, $level);
     }
     return $this->handler->handleThrowable($request, $response, $throwable);
 }