$exception =
$record->context
['exception'
] ?? null;
if ($exception instanceof \ErrorException &&
str_starts_with($exception->
getMessage(), 'User Deprecated:'
)) { return $record;
} if ($controllerPackage =
$this->
getControllerPackage()) { $packages['entrypoint'
] =
$controllerPackage;
} if ($exception instanceof \Throwable
) { if ($package =
$this->
getCommandPackage($exception)) { $packages['entrypoint'
] =
$package;
} if ($package =
$this->
getExceptionPackage($exception)) { $packages['exception'
] =
$package;
} if ($package =
$this->
getCause($exception)) { $packages['causingClass'
] =
$package;
} }