Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
salesforce-3257058
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
salesforce-3257058
Commits
a177f526
Commit
a177f526
authored
7 years ago
by
Tauno Hogue
Browse files
Options
Downloads
Patches
Plain Diff
Use event to log Reset exception when pushing upsert id
parent
77c83c32
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php
+1
-8
1 addition, 8 deletions
modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php
with
1 addition
and
8 deletions
modules/salesforce_pull/src/Plugin/QueueWorker/PullBase.php
+
1
−
8
View file @
a177f526
...
...
@@ -5,7 +5,6 @@ namespace Drupal\salesforce_pull\Plugin\QueueWorker;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\Plugin\ContainerFactoryPluginInterface
;
use
Drupal\Core\Queue\QueueWorkerBase
;
use
Drupal\Core\Utility\Error
;
use
Drupal\salesforce\Event\SalesforceErrorEvent
;
use
Drupal\salesforce\Event\SalesforceEvents
;
use
Drupal\salesforce\Event\SalesforceNoticeEvent
;
...
...
@@ -18,7 +17,6 @@ use Drupal\salesforce_mapping\Event\SalesforcePullEvent;
use
Drupal\salesforce_mapping
\MappingConstants
;
use
Drupal\salesforce_mapping
\PushParams
;
use
Drupal\salesforce_pull
\PullException
;
use
Psr\Log\LogLevel
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
use
Symfony\Component\EventDispatcher\EventDispatcherInterface
;
...
...
@@ -69,8 +67,6 @@ abstract class PullBase extends QueueWorkerBase implements ContainerFactoryPlugi
* The entity type manager.
* @param \Drupal\salesforce\Rest\RestClientInterface $client
* Salesforce REST client.
* @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory
* Logger factory service.
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher
* Event dispatcher service.
*/
...
...
@@ -302,10 +298,7 @@ abstract class PullBase extends QueueWorkerBase implements ContainerFactoryPlugi
return
TRUE
;
}
catch
(
RestException
$e
)
{
$this
->
logger
->
log
(
LogLevel
::
ERROR
,
'Unable to contact Salesforce API, suspending queue'
);
$this
->
eventDispatcher
->
dispatch
(
SalesforceEvents
::
ERROR
,
new
SalesforceErrorEvent
(
$e
));
return
FALSE
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment