Skip to content
Snippets Groups Projects
Commit f24afcf7 authored by jeffam's avatar jeffam Committed by Aaron Bauman
Browse files

Issue #3222683 by jeffam: Push error events are not getting logged when real-time push is disabled

parent d2a29120
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ use Drupal\Core\State\StateInterface;
use Drupal\salesforce\EntityNotFoundException;
use Drupal\salesforce\Event\SalesforceErrorEvent;
use Drupal\salesforce\Event\SalesforceEvents;
use Drupal\salesforce\Event\SalesforceNoticeEvent;
use Drupal\salesforce_mapping\Entity\SalesforceMappingInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
......@@ -517,7 +516,7 @@ class PushQueue extends DatabaseQueue implements PushQueueInterface {
'%id' => $item->entity_id,
'%mapping' => $mapping->id(),
];
$this->eventDispatcher->dispatch(SalesforceEvents::NOTICE, new SalesforceNoticeEvent(NULL, $message, $args));
$this->eventDispatcher->dispatch(SalesforceEvents::ERROR, new SalesforceErrorEvent(NULL, $message, $args));
$this->deleteItem($item);
return;
}
......@@ -538,7 +537,7 @@ class PushQueue extends DatabaseQueue implements PushQueueInterface {
'%item' => $item->item_id,
'%fail' => $item->failures,
];
$this->eventDispatcher->dispatch(SalesforceEvents::NOTICE, new SalesforceNoticeEvent(NULL, $message, $args));
$this->eventDispatcher->dispatch(SalesforceEvents::ERROR, new SalesforceErrorEvent(NULL, $message, $args));
// Failed items will remain in queue, but not be released. They'll be
// retried only when the current lease expires.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment