forked from j62/ctbrec
Logging
This commit is contained in:
parent
3e4483aabd
commit
ceb65f0ff2
|
@ -3,7 +3,6 @@ package ctbrec.ui.controls;
|
|||
import java.io.InterruptedIOException;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
@ -162,10 +161,6 @@ public class StreamPreview extends StackPane {
|
|||
|
||||
private void onError(MediaPlayer videoPlayer) {
|
||||
LOG.error("Error while starting preview stream", videoPlayer.getError());
|
||||
Optional<Throwable> cause = Optional.ofNullable(videoPlayer).map(v -> v.getError()).map(e -> e.getCause());
|
||||
if(cause.isPresent()) {
|
||||
LOG.error("Error while starting preview stream root cause:", cause.get());
|
||||
}
|
||||
showTestImage();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue