diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/notifications/tostoragehub/NotificationsProducerToStorageHub.java b/src/main/java/org/gcube/portlets/user/workspace/server/notifications/tostoragehub/NotificationsProducerToStorageHub.java index 68b0ad1..4c3864d 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/server/notifications/tostoragehub/NotificationsProducerToStorageHub.java +++ b/src/main/java/org/gcube/portlets/user/workspace/server/notifications/tostoragehub/NotificationsProducerToStorageHub.java @@ -157,7 +157,7 @@ public class NotificationsProducerToStorageHub { @Override public void run() { - logger.trace("Send notifies shared folder was renamed is running..."); + logger.debug("Send notifies shared folder was renamed is running..."); if(NotificationStorageHubUtil.checkIsRootSharedFolder(folderItem.getId(), idRootSharedFolder)){ logger.info("Notification not sent because the event is on root shared folder"); @@ -204,7 +204,7 @@ public class NotificationsProducerToStorageHub { @Override public void run() { - logger.trace("Send notifies shared item was updated is running..."); + logger.debug("Send notifies shared item was updated is running..."); for (InfoContactModel infoContactModel : listSharedContact) { try{ @@ -245,7 +245,8 @@ public class NotificationsProducerToStorageHub { @Override public void run() { - logger.trace("Sending notification removed item in shared folder is running..."); + logger.debug("Sending notification removed item in shared folder is running..."); + if(itemName==null || itemName.isEmpty()){ logger.trace("Notification isn't sent - itemName is null or empty"); return; @@ -293,7 +294,8 @@ public class NotificationsProducerToStorageHub { @Override public void run() { // printContacts(listContacts); - logger.trace("Sending notification shared folder deleted is running..."); + logger.debug("Sending notification shared folder deleted is running..."); + for (InfoContactModel infoContactModel : listContacts) { try{