8000 Merge pull request #715 from yuloh/log-exception-context · laravel/lumen-framework@85c6b41 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85c6b41

Browse files
authored
Merge pull request #715 from yuloh/log-exception-context
Include the exception in the logger context
2 parents 7e7ce96 + 9b3a868 commit 85c6b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function report(Exception $e)
4242
throw $e; // throw the original exception
4343
}
4444

45-
$logger->error($e);
45+
$logger->error($e, ['exception' => $e]);
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)
0