Commit bd49d16b authored by Matija Obreza's avatar Matija Obreza

Cleaned up logging statements

parent 36d25f39
......@@ -113,7 +113,7 @@ public class MeController extends ApiBaseController {
if (authentication instanceof OAuth2Authentication) {
OAuth2Authentication oauthAuth = (OAuth2Authentication) authentication;
System.err.println(oauthAuth);
// System.err.println(oauthAuth);
if (oauthAuth.isClientOnly()) {
LOG.debug("OAuth client-only authentication: {}", oauthAuth);
......@@ -124,7 +124,7 @@ public class MeController extends ApiBaseController {
Authentication userAuth = oauthAuth.getUserAuthentication();
if (userAuth != null) {
System.err.println(userAuth);
// System.err.println(userAuth);
LOG.debug("OAuth user authentication: {} {}", userAuth.getClass(), userAuth);
Object principal = userAuth.getPrincipal();
LOG.debug("OAuth user principal: {} {}", principal.getClass(), principal);
......
......@@ -172,9 +172,9 @@ public class DatasetController extends ApiBaseController {
@PostMapping(value = "/add-descriptors/{uuid},{version}")
public Dataset addDescriptors(@PathVariable("uuid") final UUID uuid, @PathVariable("version") final int version, @RequestBody final Set<UUID> descriptorUuids) {
final Dataset dataset = datasetService.getDataset(uuid, version);
System.err.println("Got dataset " + dataset);
LOG.debug("Got dataset {}", dataset);
final Set<Descriptor> descriptors = descriptorUuids.stream().map(descriptorUuid -> descriptorService.getDescriptor(descriptorUuid)).collect(Collectors.toSet());
System.err.println("Got descriptors " + descriptors.size());
LOG.debug("Got {} descriptors", descriptors.size());
return datasetService.addDescriptors(dataset, descriptors.toArray(new Descriptor[] {}));
}
......
......@@ -102,8 +102,7 @@ public class GenesysFilterServiceImpl implements GenesysFilterService {
} else {
// filt.and(accessionGeo.isNotNull()).and(accessionGeo.latitude.isNotNull()).and(accessionGeo.longitude.isNotNull());
JPAQuery<Accession> query = jpaQueryFactory.selectFrom(qAccession);
JPAQuery<Accession> x = query.innerJoin(qAccessionGeo);
System.err.println(">>>> SAme? " + (x == query));
query.innerJoin(qAccessionGeo);
if (filter != null) {
filter.buildJpaQuery(query, qAccession);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment