/**
  * Add to log.
  *
  * @param int   $history
  * @param int   $line
  * @param array $errors
  *
  * @return array
  */
 public function log($history, $line, array $errors)
 {
     if (Import_HistoryRecord::model()->findById($history)) {
         $log = new Import_LogRecord();
         $log->historyId = $history;
         $log->line = $line + 2;
         $log->errors = $errors;
         $log->save(false);
     }
     return $errors;
 }