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(() -> {
|
||||
recorderLock.lock();
|
||||
try {
|
||||
|
@ -286,7 +286,7 @@ public class NextGenLocalRecorder implements Recorder {
|
|||
executeRecordUntilSubsequentAction(model);
|
||||
} catch (PreconditionNotMetException e) {
|
||||
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);
|
||||
} finally {
|
||||
recorderLock.unlock();
|
||||
|
|
Loading…
Reference in New Issue