Skip to content

Commit

Permalink
append to log file
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 committed Mar 24, 2024
1 parent db278e2 commit 8fd064c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion av1an/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ 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 8fd064c

Please sign in to comment.