diff --git a/src/main/java/org/gcube/event/publisher/HTTPEventSender.java b/src/main/java/org/gcube/event/publisher/HTTPEventSender.java index 439940e..8396d55 100644 --- a/src/main/java/org/gcube/event/publisher/HTTPEventSender.java +++ b/src/main/java/org/gcube/event/publisher/HTTPEventSender.java @@ -59,11 +59,11 @@ public class HTTPEventSender implements EventSender { public void run() { try { if (log.isDebugEnabled()) { - log.debug("Getting token for client: " + clientId); + log.debug("Getting OIDC token for client: " + clientId); } JWTToken token = OpenIdConnectRESTHelper.queryClientToken(clientId, clientSecret, tokenURL); - if (log.isTraceEnabled()) { - log.trace("Performing HTTP POST"); + if (log.isDebugEnabled()) { + log.debug("Performing HTTP POST to: " + endpoint); } HttpURLConnection connection = (HttpURLConnection) endpoint.openConnection(); connection.setConnectTimeout(CONNECTION_TIMEOUT); @@ -82,7 +82,7 @@ public class HTTPEventSender implements EventSender { connection.setRequestProperty("Authorization", token.getAsBearer()); OutputStream os = connection.getOutputStream(); if (log.isTraceEnabled()) { - log.trace("Sending event JSON"); + log.trace("Sending event JSON: " + jsonString); } os.write(jsonString.getBytes("UTF-8")); os.close();