Skip to content

Commit 0b3f13f

Browse files
#67: handle null responses from the log
1 parent 1196442 commit 0b3f13f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RollbarServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function boot()
4646
}
4747

4848
$result = $app[RollbarLogHandler::class]->log($level, $message, $context);
49-
50-
if (!$result->getStatus()) {
49+
50+
if (!$result || !$result->getStatus()) {
5151
\Log::error(
5252
'Unable to send messages to Rollbar API. Produced response: ' .
5353
print_r($result, true)

0 commit comments

Comments
 (0)