Skip to content

Commit

Permalink
Include exception in log, when failed to register application.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Bilski committed Dec 19, 2024
1 parent 0bf5ecf commit 5fa39a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5fa39a8

Please sign in to comment.