Skip to content

Commit

Permalink
Merge pull request #1373 from /issues/1372-callback-logging
Browse files Browse the repository at this point in the history
Fix #1372: Log a successfull callback call as an info
  • Loading branch information
banterCZ authored Mar 6, 2024
2 parents 04111b6 + 6da2b4f commit 4bdd0b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ private Map<String, Object> prepareCallbackDataOperation(CallbackUrlEntity callb
* @throws RestClientException Thrown when HTTP request fails.
*/
private void notifyCallbackUrl(CallbackUrlEntity callbackUrlEntity, Map<String, Object> callbackData) throws RestClientException {
final Consumer<ResponseEntity<String>> onSuccess = response -> logger.debug("Callback succeeded, URL: {}", callbackUrlEntity.getCallbackUrl());
final Consumer<ResponseEntity<String>> onSuccess = response -> logger.info("Callback succeeded, URL: {}", callbackUrlEntity.getCallbackUrl());
final Consumer<Throwable> onError = error -> logger.warn("Callback failed, URL: {}, error: {}", callbackUrlEntity.getCallbackUrl(), error.getMessage());
final ParameterizedTypeReference<String> responseType = new ParameterizedTypeReference<>(){};
final RestClient restClient = getRestClient(callbackUrlEntity);
Expand Down

0 comments on commit 4bdd0b5

Please sign in to comment.