Skip to content

Commit cf2a9ee

Browse files
committed
Don't log the full response body after successful registration.
fixes codecentric#590 (new client - old server)
1 parent ad0a38c commit cf2a9ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-admin-starter-client/src/main/java/de/codecentric/boot/admin/client/registration/ApplicationRegistrator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public boolean register() {
7070

7171
if (response.getStatusCode().equals(HttpStatus.CREATED)) {
7272
if (registeredId.compareAndSet(null, response.getBody().get("id").toString())) {
73-
LOGGER.info("Application registered itself as {}", response.getBody());
73+
LOGGER.info("Application registered itself as {}", response.getBody().get("id").toString());
7474
} else {
75-
LOGGER.debug("Application refreshed itself as {}", response.getBody());
75+
LOGGER.debug("Application refreshed itself as {}", response.getBody().get("id").toString());
7676
}
7777

7878
isRegistrationSuccessful = true;

0 commit comments

Comments
 (0)