Skip to content

Commit 3e45be2

Browse files
author
Curtis Delicata
committed
Merge
2 parents bca7c5a + 641745e commit 3e45be2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/Exceptions/Handler.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ class Handler extends ExceptionHandler
4444
public function register(): void
4545
{
4646
$this->reportable(function (Throwable $e): void {
47-
Log::info($e);
47+
Log::error($e->getMessage(), [
48+
'exception' => get_class($e),
49+
'file' => $e->getFile(),
50+
'line' => $e->getLine(),
51+
'trace' => $e->getTraceAsString()
52+
]);
4853
});
4954
}
5055
}

0 commit comments

Comments
 (0)