Source:
<code>public CollectionDescription get(HttpServletRequest request, HttpServletResponse response) throws IOException, ZebedeeException { info().log("get collection endpoint: request received"); Session session = Root.zebedee.getSessionsService().get(request); if (session == null) { info().log("get collection endpoint: request unsuccessful valid session for user was not found."); throw new UnauthorizedException("You are not authorised to view collections."); } com.github.onsdigital.zebedee.model.Collection collection = Collections .getCollection(request); if (collection == null) { info().log("get collection endpoint: request unsuccessful collection not found"); throw new NotFoundException("The collection you are trying to get was not found."); } String collectionId = Collections.getCollectionId(request); boolean canView = Root.zebedee.getPermissionsService().canView(session.getEmail(), collection.getDescription()); if (!canView) { warn().data("user", session).data("collectionId", collectionId).log("get collection endpoint: request unsuccessful user denied canView permission"); throw new UnauthorizedException("You are not authorised to view collections."); } CollectionDescription result = new CollectionDescription(); result.setId(collection.getDescription().getId()); result.setName(collection.getDescription().getName()); result.setPublishDate(collection.getDescription().getPublishDate()); result.inProgressUris = collection.inProgressUris(); result.completeUris = collection.completeUris(); result.reviewedUris = collection.reviewedUris(); result.eventsByUri = collection.getDescription().eventsByUri; result.setApprovalStatus(collection.getDescription().approvalStatus); result.setType(collection.getDescription().getType()); result.setTeams(collection.getDescription().getTeams()); result.isEncrypted = collection.getDescription().isEncrypted; result.setReleaseUri(collection.getDescription().getReleaseUri()); <START> info().data("user", session).data("collectionId", collectionId).log("get collection endpoint: request compeleted successfully"); <END> return result; }</code><technical_language>this session.getEmail() - logger for you</technical_language>

Target:
public CollectionDescription get(HttpServletRequest request, HttpServletResponse response) throws IOException, ZebedeeException { info().log("get collection endpoint: request received"); Session session = Root.zebedee.getSessionsService().get(request); if (session == null) { info().log("get collection endpoint: request unsuccessful valid session for user was not found."); throw new UnauthorizedException("You are not authorised to view collections."); } com.github.onsdigital.zebedee.model.Collection collection = Collections .getCollection(request); if (collection == null) { info().log("get collection endpoint: request unsuccessful collection not found"); throw new NotFoundException("The collection you are trying to get was not found."); } String collectionId = Collections.getCollectionId(request); boolean canView = Root.zebedee.getPermissionsService().canView(session.getEmail(), collection.getDescription()); if (!canView) { warn().data("user", session.getEmail()).data("collectionId", collectionId).log("get collection endpoint: request unsuccessful user denied canView permission"); throw new UnauthorizedException("You are not authorised to view collections."); } CollectionDescription result = new CollectionDescription(); result.setId(collection.getDescription().getId()); result.setName(collection.getDescription().getName()); result.setPublishDate(collection.getDescription().getPublishDate()); result.inProgressUris = collection.inProgressUris(); result.completeUris = collection.completeUris(); result.reviewedUris = collection.reviewedUris(); result.eventsByUri = collection.getDescription().eventsByUri; result.setApprovalStatus(collection.getDescription().approvalStatus); result.setType(collection.getDescription().getType()); result.setTeams(collection.getDescription().getTeams()); result.isEncrypted = collection.getDescription().isEncrypted; result.setReleaseUri(collection.getDescription().getReleaseUri()); info().data("user", session.getEmail()).data("collectionId", collectionId).log("get collection endpoint: request compeleted successfully"); return result; }