protected function logEnd(LogOperation $log = null) { if ($this->shouldLog($log)) { $this->logger->end($log->stop()); } }