@@ -16,11 +16,6 @@ fn setup_logging(logpath: PathBuf, verbosity: u64) -> Result<()> {
18 // Separate file config so we can include year, month and day in file logs
18 // Separate file config so we can include year, month and day in file logs
19− let file = std::fs::OpenOptions::new()
24 let file_config = fern::Dispatch::new()
19 let file_config = fern::Dispatch::new()
25 .format(|out, message, record| {
20 .format(|out, message, record| {
26 out.finish(format_args!(
21 out.finish(format_args!(
@@ -31,7 +26,7 @@ fn setup_logging(logpath: PathBuf, verbosity: u64) -> Result<()> {
34− .chain(file);
29+ .chain(fern::log_file(logpath)?);
36 base_config.chain(file_config).apply()?;
31 base_config.chain(file_config).apply()?;