@@ 21-29 (lines=9) @@ | ||
18 | * @param int $code |
|
19 | * @param Throwable|null $previous |
|
20 | */ |
|
21 | public function __construct($message = '', $code = 0, Throwable $previous = null) |
|
22 | { |
|
23 | parent::__construct($message, $code, $previous); |
|
24 | ||
25 | if (\config('permission.log_registration_exception')) { |
|
26 | $logger = \app('log'); |
|
27 | $logger->alert($message); |
|
28 | } |
|
29 | } |
|
30 | } |
|
31 |
@@ 24-37 (lines=14) @@ | ||
21 | * @param array $headers |
|
22 | * @param int $code |
|
23 | */ |
|
24 | public function __construct( |
|
25 | $statusCode, |
|
26 | $message = null, |
|
27 | Exception $previous = null, |
|
28 | array $headers = array(), |
|
29 | $code = 0 |
|
30 | ) { |
|
31 | parent::__construct($statusCode, $message, $previous, $headers, $code); |
|
32 | ||
33 | if (\config('permission.log_registration_exception')) { |
|
34 | $logger = \app('log'); |
|
35 | $logger->alert($message); |
|
36 | } |
|
37 | } |
|
38 | } |
|
39 |