Skip to content

Commit 5bbad4b

Browse files
committed
Allow show log id on CLI
1 parent b4cc80b commit 5bbad4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ExceptionHandler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ protected function cliError(Throwable $exception) : void
286286
. ': ' . $exception->getLine() . \PHP_EOL;
287287
$message .= $language->render('debug', 'trace')
288288
. ': ' . \PHP_EOL . $exception->getTraceAsString();
289+
$log = $this->getLog();
290+
if ($log) {
291+
$message .= \PHP_EOL . $language->render('debug', 'logId') . ': ' . $log->id;
292+
}
289293
CLI::error($message, $this->testing ? null : 1);
290294
}
291295

0 commit comments

Comments
 (0)