Skip to content

Commit

Permalink
#127 Use Parameterized Log to Prevent Performance Penalties
Browse files Browse the repository at this point in the history
The conatenation will be done always, also if debug level is not
logged. So we should alwyas use parameterized log statements.

Signed-off-by: Sven Strittmatter <[email protected]>
  • Loading branch information
Weltraumschaf committed Jul 27, 2024
1 parent 7c4ced7 commit 3856a3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected PaginatedResult<T> internalSearch(Map<String, Object> queryParams, lon
}

var url = new URI(this.config.getUrl() + API_PREFIX + this.getUrlPath() + "/");
log.debug("Requesting URL: " + url);
log.debug("Requesting URL: {}", url);
var uriBuilder = UriComponentsBuilder.fromUri(url).queryParams(multiValueMap);

ResponseEntity<String> responseString = restTemplate.exchange(
Expand Down

0 comments on commit 3856a3f

Please sign in to comment.