mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +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 {
|
for arg in args {
|
||||||
// Change log file
|
// Change log file
|
||||||
let new_log_file = FileSpec::try_from(PathAbs::new(&arg.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()?;
|
Av1anContext::new(arg)?.encode_file()?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue