Browse Source

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

v2.0-beta
CalDescent 3 years ago
parent
commit
b265dc3bfb
  1. 6
      src/main/java/org/qortal/api/resource/BootstrapResource.java

6
src/main/java/org/qortal/api/resource/BootstrapResource.java

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

Loading…
Cancel
Save