Skip to content

Commit 98aa272

Browse files
Fix log creation
1 parent 7c327bc commit 98aa272

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Skeleton/Transaction/Log.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static function get_last_successful() {
8989
* Create log.
9090
*/
9191
public static function create(
92-
\Transaction $transaction, bool $failed, string $output = '', ?\Exception $exception = null,
92+
\Transaction $transaction, bool $failed, string $output = '', ?\Throwable $t = null,
9393
?string $date = null
9494
): self {
9595

@@ -98,8 +98,8 @@ public static function create(
9898
$log->failed = $failed;
9999
$log->output = $output;
100100

101-
if (isset($exception) === true) {
102-
$log->exception = print_r($exception, true);
101+
if (isset($t) === true) {
102+
$log->exception = print_r($t, true);
103103
}
104104

105105
if ($date !== null) {

0 commit comments

Comments
 (0)