Skip to content

Commit

Permalink
Ignore SCCACHE_ERROR_LOG when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
eoger authored and froydnj committed Mar 24, 2020
1 parent 1351a07 commit abc2759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn redirect_stderr(f: File) -> Result<()> {
/// If `SCCACHE_ERROR_LOG` is set, redirect stderr to it.
fn redirect_error_log() -> Result<()> {
let name = match env::var("SCCACHE_ERROR_LOG") {
Ok(filename) => filename,
Ok(filename) if !filename.is_empty() => filename,
_ => return Ok(()),
};
let f = OpenOptions::new().create(true).append(true).open(name)?;
Expand Down

0 comments on commit abc2759

Please sign in to comment.