fix failing init if log file is missing

This commit is contained in:
2020-12-19 13:15:32 +01:00
parent b0c48d405e
commit 1349f9e01f

View File

@@ -158,9 +158,10 @@ async fn main_loop(ui_queue: ui::MsgQueue) -> Result<()> {
.await .await
.context("init task failed")??; .context("init task failed")??;
let log_path = Path::new("./audio-conv.log") let log_path = Path::new(".")
.canonicalize() .canonicalize()
.context("unable to canonicalize path to log file")?; .context("unable to canonicalize path to log file")?
.join("audio-conv.log");
ui_queue.push(ui::Msg::Init { ui_queue.push(ui::Msg::Init {
task_len: conv_args.len(), task_len: conv_args.len(),