added log

This commit is contained in:
Massimiliano Assante 2022-10-19 16:28:03 +02:00
parent 72bb6c65ba
commit 1003c32ffc
1 changed files with 1 additions and 0 deletions

View File

@ -357,6 +357,7 @@ public class Notifications {
// check if the token belongs to an application token. In this case use J.A.R.V.I.S (the username used to communicate with Liferay)
String username = null;
String fullName = "";
logger.debug("Catalogue Notification called by " + caller.getClient().getId() + " isUser?"+TokensUtils.isUserToken(caller));
if(!TokensUtils.isUserToken(caller)){
GCubeUser jarvis = UserManagerWSBuilder.getInstance().getUserManager().getUserByEmail(LiferayJSONWsCredentials.getSingleton().getUser());
SecurityTokenProvider.instance.set(LiferayJSONWsCredentials.getSingleton().getNotifierUserToken());