Suppress log statement for Stream Closed

This commit is contained in:
0xb00bface 2021-02-13 19:50:18 +01:00
parent 844fe63fca
commit 7e3ceb29f4
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}