put some logs at debug level

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portal/portal-manager@141381 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-22 16:12:51 +00:00
parent 40b43f6c8f
commit f0cc8edf7f
1 changed files with 4 additions and 4 deletions

View File

@ -34,17 +34,17 @@ public class ContextUserUtil {
if ("COMPANY_ID".equals(c.getName())) {
companyId = c.getValue();
} else if ("ID".equals(c.getName())) {
_log.info("User id before ascii conversion is " + c.getValue());
_log.debug("User id before ascii conversion is " + c.getValue());
userId = hexStringToStringByAscii(c.getValue());
}
}
if (userId != null && companyId != null) {
try {
Company company = CompanyLocalServiceUtil.getCompany(Long.parseLong(companyId));
_log.info("company is " + company);
_log.debug("company is " + company);
Key key = company.getKeyObj();
_log.info("key is " + company.getKey());
_log.info("User id after ascii conversion is " + userId);
_log.debug("key is " + company.getKey());
_log.debug("User id after ascii conversion is " + userId);
String userIdPlain = Encryptor.decrypt(key, userId);
return Long.valueOf(userIdPlain);