Avoid swallowing of exceptions by catching them all
This commit is contained in:
parent
c96138ed6e
commit
47469c8aea
|
@ -267,7 +267,7 @@ public class NextGenLocalRecorder implements Recorder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private CompletableFuture<Void> startRecordingProcess(Model model) throws IOException {
|
private CompletableFuture<Void> startRecordingProcess(Model model) {
|
||||||
return CompletableFuture.runAsync(() -> {
|
return CompletableFuture.runAsync(() -> {
|
||||||
recorderLock.lock();
|
recorderLock.lock();
|
||||||
try {
|
try {
|
||||||
|
@ -286,7 +286,7 @@ public class NextGenLocalRecorder implements Recorder {
|
||||||
executeRecordUntilSubsequentAction(model);
|
executeRecordUntilSubsequentAction(model);
|
||||||
} catch (PreconditionNotMetException e) {
|
} catch (PreconditionNotMetException e) {
|
||||||
LOG.info("Precondition not met to record {}: {}", model, e.getLocalizedMessage());
|
LOG.info("Precondition not met to record {}: {}", model, e.getLocalizedMessage());
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Couldn't start recording process for {}", model, e);
|
LOG.error("Couldn't start recording process for {}", model, e);
|
||||||
} finally {
|
} finally {
|
||||||
recorderLock.unlock();
|
recorderLock.unlock();
|
||||||
|
|
Loading…
Reference in New Issue