Don't log the complete stack trace for exceptions generated by bootstrap.checkRepositoryState(). The error message is enough in these cases.

This commit is contained in:
CalDescent 2021-10-09 11:47:49 +01:00
parent 63cabbe960
commit b265dc3bfb

View File

@ -49,7 +49,11 @@ public class BootstrapResource {
try (final Repository repository = RepositoryManager.getRepository()) {
Bootstrap bootstrap = new Bootstrap(repository);
try {
bootstrap.checkRepositoryState();
} catch (DataException e) {
LOGGER.info("Not ready to create bootstrap: ", e.getMessage());
}
bootstrap.validateBlockchain();
return bootstrap.create();