forked from Qortal/qortal
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:
parent
63cabbe960
commit
b265dc3bfb
@ -49,7 +49,11 @@ public class BootstrapResource {
|
||||
try (final Repository repository = RepositoryManager.getRepository()) {
|
||||
|
||||
Bootstrap bootstrap = new Bootstrap(repository);
|
||||
bootstrap.checkRepositoryState();
|
||||
try {
|
||||
bootstrap.checkRepositoryState();
|
||||
} catch (DataException e) {
|
||||
LOGGER.info("Not ready to create bootstrap: ", e.getMessage());
|
||||
}
|
||||
bootstrap.validateBlockchain();
|
||||
return bootstrap.create();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user