Skip to content

Commit

Permalink
Use the config.notify.includeExceptionStackTrace option
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Mar 23, 2016
1 parent fa6c428 commit 1bcf750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Notifications/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function send(Exception $e){
$factory = new MonologHandlerFactory();
$drivers = $this->config['drivers'];

$message = (is_callable($this->messageCb) ? $this->messageCb->__invoke($e) : get_class($e) . " was thrown! \n".$e->getMessage());
$message = (is_callable($this->messageCb) ? $this->messageCb->__invoke($e) : get_class($e) . " was thrown! \n".$e->getMessage().($this->config['includeExceptionStackTrace']===true?"\n\n".$e->getTraceAsString():''));
$subject = (is_callable($this->subjectCb) ? $this->subjectCb->__invoke($e) : get_class($e));

foreach ($drivers as $driver) {
Expand Down

0 comments on commit 1bcf750

Please sign in to comment.