Skip to content

Commit

Permalink
logging Messages anpassen
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamza24 committed Nov 9, 2022
1 parent f64f322 commit 3a5ff5f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ private void publishNotification(String messageString) {
if (messageString.contains("resourceType\" : \"USER") ||
messageString.contains("resourceType\" : \"REALM_ROLE_MAPPING")) {
try {
log.info( "publish Event to host :" + cfg.getHostUrl() + " endpoint :" + cfg.getEndpoint() + " port: " + cfg.getPort());
log.infof("keycloak-to-TCM sending message: %s%n", messageString);
log.info( "\n############ publish Event to host :" + cfg.getHostUrl() + " port: " + cfg.getPort()+ " endpoint :" + cfg.getEndpoint() +" ############");
log.infof("\n keycloak-to-TCM sending message: %s%n", messageString);
StringEntity entity = new StringEntity(messageString, ContentType.APPLICATION_JSON);
httpPost.setEntity(entity);
httpPost.setHeader("Accept", "application/json");
client.execute(httpPost);
log.infof("keycloak-to-TCM SUCCESS sending user update message");

} catch (Exception ex) {
log.errorf(ex, "keycloak-to-TCM ERROR sending message: %s%n", messageString);
log.errorf(ex, "\n keycloak-to-TCM ERROR sending message: %s%n", messageString);
}
}
}
Expand Down

0 comments on commit 3a5ff5f

Please sign in to comment.