Skip to content

Commit f56fb2f

Browse files
authored
Update EventLog.php
1 parent ee482e6 commit f56fb2f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/system/models/EventLog.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
namespace System\Models;
44

55
use Exception;
6-
use Illuminate\Support\Facades\App;
7-
use Throwable;
86
use ReflectionClass;
7+
use Throwable;
98
use Winter\Storm\Database\Model;
109
use Winter\Storm\Support\Str;
1110

@@ -70,15 +69,14 @@ public static function add(string $message, string $level = 'info', ?array $deta
7069
*/
7170
public static function addException(Throwable $throwable, string $level = 'error'): static
7271
{
73-
$record = new static;
72+
$record = new static();
7473
$record->message = $throwable->getMessage();
7574
$record->level = $level;
7675
$record->details = $record->getDetails($throwable);
7776

7877
try {
7978
$record->save();
80-
}
81-
catch (Exception $ex) {
79+
} catch (Exception $ex) {
8280
}
8381

8482
return $record;

0 commit comments

Comments
 (0)