Skip to content

Commit

Permalink
append to log file (#817)
Browse files Browse the repository at this point in the history
When resuming, append to the log file instead of clearing its old contents
  • Loading branch information
jcj83429 authored Mar 28, 2024
1 parent 93b5205 commit 6632b47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion av1an/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,8 @@ pub fn run() -> anyhow::Result<()> {
for arg in args {
// Change log file
let new_log_file = FileSpec::try_from(PathAbs::new(&arg.log_file)?)?;
let _ = &logger.reset_flw(&flexi_logger::writers::FileLogWriter::builder(new_log_file))?;
let _ =
&logger.reset_flw(&flexi_logger::writers::FileLogWriter::builder(new_log_file).append())?;

Av1anContext::new(arg)?.encode_file()?;
}
Expand Down

0 comments on commit 6632b47

Please sign in to comment.