diff --git a/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/registration/DefaultApplicationRegistrator.java b/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/registration/DefaultApplicationRegistrator.java index c39c8e97681..5724ad6b9e2 100644 --- a/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/registration/DefaultApplicationRegistrator.java +++ b/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/registration/DefaultApplicationRegistrator.java @@ -90,11 +90,11 @@ protected boolean register(Application application, String adminUrl, boolean fir if (firstAttempt) { LOGGER.warn( "Failed to register application as {} at spring-boot-admin ({}): {}. Further attempts are logged on DEBUG level", - application, this.adminUrls, ex.getMessage()); + application, this.adminUrls, ex.getMessage(), ex); } else { LOGGER.debug("Failed to register application as {} at spring-boot-admin ({}): {}", application, - this.adminUrls, ex.getMessage()); + this.adminUrls, ex.getMessage(), ex); } return false; }