|
@@ -69,7 +69,6 @@ public class VaultService {
|
|
|
public Task<Vault> createLockTask(Vault vault, boolean forced) {
|
|
|
Task<Vault> task = new LockVaultTask(vault, forced);
|
|
|
task.setOnSucceeded(evt -> LOG.info("Locked {}", vault.getDisplayName()));
|
|
|
- task.setOnFailed(evt -> LOG.error("Failed to lock " + vault.getDisplayName(), evt.getSource().getException()));
|
|
|
return task;
|
|
|
}
|
|
|
|
|
@@ -165,6 +164,8 @@ public class VaultService {
|
|
|
public LockVaultTask(Vault vault, boolean forced) {
|
|
|
this.vault = vault;
|
|
|
this.forced = forced;
|
|
|
+
|
|
|
+ setOnFailed(event -> LOG.error("Failed to lock " + vault.getDisplayName(), event.getSource().getException()));
|
|
|
}
|
|
|
|
|
|
@Override
|