-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TypeError(s) and serialize ExceptionInfo #111
Conversation
getExceptionTrace expects Object, and $chain[0] is already a Trace Object
Otherwise the exception data doesn't get serialized for API call.
43898f3
to
31f493a
Compare
bump |
bump @brianr @rokob @jessewgibbs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -307,7 +307,7 @@ protected function getBody($toLog, $context) | |||
if ($toLog instanceof ErrorWrapper) { | |||
$content = $this->getErrorTrace($toLog); | |||
} elseif ($toLog instanceof $baseException) { | |||
$content = $this->getExceptionTrace($baseException); | |||
$content = $this->getExceptionTrace($toLog); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -501,7 +502,7 @@ protected function getRequest() | |||
$request->$key = $val; | |||
} | |||
} | |||
if (is_array($_SESSION) && count($_SESSION) > 0) { | |||
if (isset($_SESSION) && is_array($_SESSION) && count($_SESSION) > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Woohoo thanks! :) |
Fixes #100, fixes #106