Skip to content

Commit e43670c

Browse files
authored
Merge pull request #29 from aivis/master
use the context exception attribute for Laravel 5.5
2 parents 0056540 + 2d986f4 commit e43670c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Understand/UnderstandLaravel5/UnderstandLaravel5ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ protected function handleEvent($level, $message, $context)
303303
$this->app['understand.eventLogger']->logEvent($level, $message, $context);
304304
}
305305
// `\Log::notice`, `\Log::warning`, `\Log::error`, `\Log::critical`, `\Log::alert`, `\Log::emergency` and `\Exception`, `\Throwable`
306-
else if ($this->detectLaravelVersion(['5.6', '5.7']) && isset($context['exception']) && ($context['exception'] instanceof Exception || $context['exception'] instanceof Throwable))
306+
else if ($this->detectLaravelVersion(['5.5', '5.6', '5.7']) && isset($context['exception']) && ($context['exception'] instanceof Exception || $context['exception'] instanceof Throwable))
307307
{
308308
$exception = $context['exception'];
309309
unset($context['exception']);

0 commit comments

Comments
 (0)