append to log file (#817)

When resuming, append to the log file instead of clearing its old contents
This commit is contained in:
jcj83429 2024-03-27 19:16:51 -07:00 committed by GitHub
parent 93b5205c45
commit 6632b47064
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()?;
}