fix build

This commit is contained in:
galister
2024-03-01 22:14:37 +01:00
parent f42572d4cb
commit da1936823f

View File

@@ -42,7 +42,7 @@ struct Args {
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = Args::parse(); let args = Args::parse();
if let Some(log_to) = args.log_to { if let Some(ref log_to) = args.log_to {
flexi_logger::Logger::try_with_env_or_str("info")? flexi_logger::Logger::try_with_env_or_str("info")?
.log_to_file(FileSpec::default().directory(&log_to)) .log_to_file(FileSpec::default().directory(&log_to))
.log_to_stdout() .log_to_stdout()