Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 55b2dde

Browse files
committed
update log statements
1 parent 7266e7e commit 55b2dde

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/java/com/appirio/tech/core/service/identity/clients/EventBusServiceClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ public void reFireEvent(EventMessage eventMessage) {
8282
String authToken = Utils.generateAuthToken(m2mAuthConfiguration);
8383

8484
eventMessage.setOriginator(this.config.getAdditionalConfiguration().get("originator"));
85+
LOGGER.info("Fire event {}", new ObjectMapper().writer().writeValueAsString(eventMessage));
8586
Response response = request.header("Authorization", "Bearer " + authToken).post(Entity.entity(eventMessage.getData(), MediaType.APPLICATION_JSON_TYPE));
8687

87-
LOGGER.info("Fire event {}", new ObjectMapper().writer().writeValueAsString(eventMessage));
8888
if (response.getStatusInfo().getStatusCode() != HttpStatus.OK_200 && response.getStatusInfo().getStatusCode()!= HttpStatus.NO_CONTENT_204) {
8989
LOGGER.error("Unable to fire the event: {}", response);
9090
}

src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,6 @@ public ApiResponse updateUser2fa(
15271527

15281528
Long userId = Utils.toLongValue(id);
15291529

1530-
logger.info(String.format("findUserById(%s)", resourceId));
15311530
User2fa user2faInDb = userDao.findUser2faById(userId);
15321531
if (user2faInDb == null)
15331532
throw new APIRuntimeException(SC_NOT_FOUND, MSG_TEMPLATE_USER_NOT_FOUND);
@@ -1559,7 +1558,7 @@ public ApiResponse updateUser2fa(
15591558
String.format("Got unexpected response from remote service. %d %s", response.getStatusCode(),
15601559
response.getMessage()));
15611560
}
1562-
logger.info(response.getText());
1561+
logger.info("Connection created: " + response.getText());
15631562
send2faInvitationEmailEvent(user2faInDb, diceAuth.getDiceUrl() + "/verify/" + response.getText());
15641563
}
15651564

src/main/java/com/appirio/tech/core/service/identity/util/auth/DICEAuth.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public String getToken() throws Exception {
167167
}
168168
}
169169
if (cachedToken == null || isCachedTokenExpired) {
170-
Response response = new Request(
171-
"https://login.microsoftonline.com/" + getTenant() + "/oauth2/v2.0/token", "POST")
170+
String url = "https://login.microsoftonline.com/" + getTenant() + "/oauth2/v2.0/token";
171+
Response response = new Request(url, "POST")
172172
.param("grant_type", "password")
173173
.param("username", getUsername())
174174
.param("password", getPassword())
@@ -181,6 +181,7 @@ public String getToken() throws Exception {
181181
response.getText()));
182182
}
183183
cachedToken = new ObjectMapper().readValue(response.getText(), Auth0Credential.class).getIdToken();
184+
logger.info("Fetched token from URL: " + url);
184185
}
185186
return cachedToken;
186187
}

0 commit comments

Comments
 (0)