Author: Chad Sikorra (Chad.Sikorra@gmail.com)
 /**
  * End a logging operation.
  *
  * @param LogOperation|null $log
  */
 protected function logEnd(LogOperation $log = null)
 {
     if ($this->shouldLog($log)) {
         $this->logger->end($log->stop());
     }
 }