diff --git a/src/main/java/org/gcube/gcat/social/SocialPost.java b/src/main/java/org/gcube/gcat/social/SocialPost.java index d79c03d..9e7ce7b 100644 --- a/src/main/java/org/gcube/gcat/social/SocialPost.java +++ b/src/main/java/org/gcube/gcat/social/SocialPost.java @@ -6,6 +6,8 @@ import java.util.List; import org.gcube.com.fasterxml.jackson.databind.JsonNode; import org.gcube.com.fasterxml.jackson.databind.node.ArrayNode; +import org.gcube.common.authorization.library.provider.AuthorizationProvider; +import org.gcube.common.authorization.library.provider.SecurityTokenProvider; import org.gcube.common.authorization.utils.manager.SecretManagerProvider; import org.gcube.gcat.api.configuration.CatalogueConfiguration; import org.gcube.gcat.configuration.CatalogueConfigurationFactory; @@ -144,7 +146,12 @@ public class SocialPost extends Thread { } String message = messageWriter.toString(); - logger.debug("The post that is going to be written is\n{}", message); + logger.debug("The social post that is going to be written is\n{}", message); + + logger.trace("The user is going to send the social post is {}",SecretManagerProvider.instance.get().getUser().getUsername()); + logger.trace("SecurityTokenProvider {}", SecurityTokenProvider.instance.get()); + logger.trace("AuthorizationProvider {}", AuthorizationProvider.instance.get()); + PostClient postClient = new PostClient(); PostInputBean postInputBean = new PostInputBean();