Revision 50323
Added by Argiro Kokogiannaki over 5 years ago
modules/uoa-claims-api/trunk/src/main/java/eu/dnetlib/openaire/rest/Authorization.java | ||
---|---|---|
114 | 114 |
if (origin != null && originServer.equals(origin)) { |
115 | 115 |
return true; |
116 | 116 |
} |
117 |
logger.debug("Not valid origin. Origin server is \"" + origin + "\", but expected value is \"" + originServer + "\". If the expec cted value is not right, check properties file. "); |
|
117 | 118 |
return false; |
118 | 119 |
} |
119 | 120 |
|
modules/uoa-claims-api/trunk/src/main/java/eu/dnetlib/openaire/rest/HelloWorldService.java | ||
---|---|---|
350 | 350 |
total = fetchClaimHandler.countClaimsByUser(userMail, keyword, listTypes); |
351 | 351 |
|
352 | 352 |
} catch (SQLStoreException|Exception e) { |
353 |
logger.error("Could not fetch claims for result with id " + userMail, e);
|
|
353 |
logger.error("Could not fetch claims for user with mail " + userMail, e);
|
|
354 | 354 |
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(compose500Message("Fail to fetch claims" + |
355 | 355 |
" for user with e-mail " + userMail + ".", e)).type(MediaType.APPLICATION_JSON).build(); |
356 | 356 |
} |
Also available in: Unified diff
add a logger