From 1003c32ffc4f106b89c5e3cad17a3de444895f3c Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Wed, 19 Oct 2022 16:28:03 +0200 Subject: [PATCH] added log --- .../portal/social/networking/ws/methods/v2/Notifications.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java index a4d785f..5de9222 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java @@ -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());