Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,12 @@ protected Duration getDefaultTimeout() {
}

protected OutputStream getLogOutput() {
if (logOutputStream != null) {
return logOutputStream;
}
try {
return logOutputStream != null ? logOutputStream : new FileOutputStream(logFile);
File logFile = getLogFile();
return logFile == null ? ByteStreams.nullOutputStream() : new FileOutputStream(logFile);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
Expand Down