changed logs into the getUserByUsername method (put in the catch blocks)

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@128916 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-05-31 09:52:32 +00:00
parent a11b9fca06
commit 7a869d86b1
1 changed files with 3 additions and 1 deletions

View File

@ -415,12 +415,14 @@ public class LiferayUserManager implements UserManager {
User toGet = null;
GCubeUser toReturn = null;
try {
_log.debug("Trying to fetch user by username = " + username);
//_log.debug("Trying to fetch user by username = " + username);
toGet = UserLocalServiceUtil.getUserByScreenName(ManagementUtils.getCompany().getCompanyId(), username);
toReturn = mapLRUser(toGet);
} catch (PortalException e) {
_log.error("Failed to fetch user by username = " + username, e);
throw new UserRetrievalFault("User not existing", e);
} catch (SystemException e) {
_log.error("Failed to fetch user by username = " + username, e);
throw new UserManagementSystemException(e.getMessage(), e);
}
return toReturn;