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;
} } if ($packages !==
[]) { $record->extra
[Package::PACKAGE_TRACE_ATTRIBUTE_KEY
] =
$packages;
}