Skip to content

Commit 3ac8295

Browse files
cleptricLitarnus
andauthored
Update src/Sentry/Laravel/Logs/LogsHandler.php
Co-authored-by: Martin Linzmayer <[email protected]>
1 parent 688278d commit 3ac8295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry/Laravel/Logs/LogsHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getBatchFormatter(): FormatterInterface
9898
protected function doWrite($record): void
9999
{
100100
$context = $record['context'];
101-
$exception = $record['context']['exception'] ?? null;
101+
$exception = $context['exception'] ?? null;
102102

103103
if ($exception instanceof Throwable) {
104104
// Unset the exception object from the log context

0 commit comments

Comments
 (0)