protected function FeedsProcessor::createLogMessage in Feeds 8.2
Creates a log message for when an exception occured during import.
Parameters
Exception $e: The exception that was throwned during processing the item.
$entity: The entity object.
$item: The parser result for this entity.
Return value
string The message to log.
1 call to FeedsProcessor::createLogMessage()
- FeedsProcessor::process in lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php - Process the result of the parsing stage.
File
- lib/
Drupal/ feeds/ Plugin/ FeedsProcessor.php, line 878 - Contains FeedsProcessor and related classes.
Class
- FeedsProcessor
- Abstract class, defines interface for processors.
Namespace
Drupal\feeds\PluginCode
protected function createLogMessage(Exception $e, $entity, $item) {
include_once DRUPAL_ROOT . '/core/includes/utility.inc';
$message = $e
->getMessage();
$message .= '<h3>Original item</h3>';
$message .= '<pre>' . drupal_var_export($item) . '</pre>';
$message .= '<h3>Entity</h3>';
$message .= '<pre>' . drupal_var_export($entity
->getValue()) . '</pre>';
return $message;
}