Skip to content

Commit

Permalink
logException() used instead of handleException() to send data to Rollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
baibaratsky committed Apr 12, 2016
1 parent 0cc3186 commit 12354e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ErrorHandlerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait ErrorHandlerTrait
*/
public $payloadDataCallback;

public function handleException($exception)
public function logException($exception)
{
$ignoreException = false;
foreach (Yii::$app->get($this->rollbarComponentName)->ignoreExceptions as $ignoreRecord) {
Expand All @@ -44,7 +44,7 @@ public function handleException($exception)
Rollbar::report_exception($exception, null, $this->getPayloadData($exception));
}

parent::handleException($exception);
parent::logException($exception);
}

public function handleError($code, $message, $file, $line)
Expand Down

0 comments on commit 12354e7

Please sign in to comment.