Suppress log statement for Stream Closed
This commit is contained in:
parent
844fe63fca
commit
7e3ceb29f4
|
@ -4,6 +4,7 @@ import static java.util.concurrent.TimeUnit.*;
|
|||
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
|
@ -37,7 +38,9 @@ public class ProcessStreamRedirector implements Runnable {
|
|||
executor.schedule(this, 100, MILLISECONDS);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.debug("Error while reading from process output stream: {}", e.getLocalizedMessage());
|
||||
if (!Objects.equals(e.getMessage(), "Stream Closed")) {
|
||||
LOG.debug("Error while reading from process output stream: {}", e.getLocalizedMessage(), e);
|
||||
}
|
||||
keepGoing = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue