mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 18:18:06 +00:00
append to log file (#817)
When resuming, append to the log file instead of clearing its old contents
This commit is contained in:
parent
93b5205c45
commit
6632b47064
1 changed files with 2 additions and 1 deletions
|
@ -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()?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue