Skip to content

Commit

Permalink
Merge pull request FriendsOfSymfony#426 from Remixjobs/errors-remove-…
Browse files Browse the repository at this point in the history
…emailing

[errors] remove sending errors on email.
  • Loading branch information
jeremymarc committed Oct 11, 2013
2 parents 18550de + c62c4f0 commit 4a99200
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ protected function initializeChainNodeManager()

// prod env
if (false == $this->isDebug()) {
$recipients = array(
'dev@remixcv.com',
);

$this->chainNodeManager->addProvider('default', new ExceptionSubjectProvider());
$this->chainNodeManager->addProvider('default', new ExceptionSummaryProvider());
$this->chainNodeManager->addProvider('default', new ExceptionStackTraceProvider());
Expand All @@ -168,18 +164,6 @@ protected function initializeChainNodeManager()
))
));

$domain = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'remixcv.com';
$this->chainNodeManager->addSender('default', new MailSender(
new NativeMailerAdapter,
$serializer,
new DataHolder(array(
'sender' => 'noreply@'.$domain,
'recipients' => $recipients,
'subject' => 'Whoops, looks like something went wrong.',
'format' => 'text',
'headers' => array()
))
));
if (isset($_SERVER['SENTRY_DSN'])) {
$this->chainNodeManager->addSender(
'default',
Expand Down

0 comments on commit 4a99200

Please sign in to comment.