Skip to content

Commit d0aaea5

Browse files
committed
Allow show log id on JSON responses
1 parent 5bbad4b commit d0aaea5

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
@@ -244,6 +244,10 @@ protected function sendJson(Throwable $exception) : void
244244
: [
245245
'message' => $this->getLanguage()->render('debug', 'exceptionDescription'),
246246
];
247+
$log = $this->getLog();
248+
if ($log) {
249+
$data['log_id'] = $log->id;
250+
}
247251
echo \json_encode([
248252
'status' => [
249253
'code' => 500,

0 commit comments

Comments
 (0)