Update community IDs in graph.json and manifest.json; modify migration command in liara_pre_start.sh; enhance error logging in ExceptionSubscriber.php; add new AST cache files.
This commit is contained in:
@@ -108,10 +108,18 @@ class ExceptionSubscriber implements EventSubscriberInterface
|
||||
return;
|
||||
}
|
||||
|
||||
// Generic fallback: never leak stack traces or internal details in API responses
|
||||
$this->logger->error('Unhandled exception', [
|
||||
// Generic fallback: never leak stack traces or internal details in API responses.
|
||||
// The class/message/location go into the log MESSAGE itself so they surface in
|
||||
// platforms (e.g. Liara) whose default logger only prints the message string.
|
||||
$this->logger->error(sprintf(
|
||||
'Unhandled exception: %s: %s @ %s:%d [path=%s]',
|
||||
$exception::class,
|
||||
$exception->getMessage(),
|
||||
$exception->getFile(),
|
||||
$exception->getLine(),
|
||||
$event->getRequest()->getPathInfo(),
|
||||
), [
|
||||
'exception' => $exception,
|
||||
'path' => $event->getRequest()->getPathInfo(),
|
||||
]);
|
||||
|
||||
$event->setResponse(new JsonResponse(
|
||||
|
||||
Reference in New Issue
Block a user