protected function FeedsProcessor::createLogMessage in Feeds 7.2
DEPRECATED: Creates a log message for exceptions during import.
Don't use this method as it concatenates user variables into the log message, which will pollute the locales_source table when the log message is translated. Use ::createLogEntry instead.
Parameters
Exception $e: The exception that was throwned during processing the item.
object $entity: The entity object.
object $item: The parser result for this entity.
Return value
string The message to log.
Deprecated
Use ::createLogEntry instead.
File
- plugins/
FeedsProcessor.inc, line 1424 - Contains FeedsProcessor and related classes.
Class
- FeedsProcessor
- Abstract class, defines interface for processors.
Code
protected function createLogMessage(Exception $e, $entity, $item) {
$message = $e
->getMessage();
$message .= '<h3>Original item</h3>';
// $this->exportObjectVars() already runs check_plain() for us, so we can
// concatenate here as is.
$message .= '<pre>' . $this
->exportObjectVars($item) . '</pre>';
$message .= '<h3>Entity</h3>';
$message .= '<pre>' . $this
->exportObjectVars($entity) . '</pre>';
return $message;
}