Skip to content

Commit

Permalink
fixes getsentry#391 Fatal errors are not recorded with the curl metho…
Browse files Browse the repository at this point in the history
…d async

very inelegant, but if we call onShutdown() then error could be logged
(if other logic allows it :)
  • Loading branch information
mfb committed Feb 20, 2018
1 parent 4dd0a3e commit 560384b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Raven/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ public function handleFatalError()
@$error['file'], @$error['line']
);
$this->handleException($e, true);
if ($this->client->curl_method === 'async') {
$this->client->onShutdown();
}
}
}

Expand Down

0 comments on commit 560384b

Please sign in to comment.