diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0ef832c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +target +private_repos +log/ diff --git a/examples/opnsense/src/main.rs b/examples/opnsense/src/main.rs index eda7b2f..fac1080 100644 --- a/examples/opnsense/src/main.rs +++ b/examples/opnsense/src/main.rs @@ -81,9 +81,9 @@ async fn main() { let load_balancer_score = harmony::modules::okd::load_balancer::OKDLoadBalancerScore::new(&topology); - let tftp_score = TftpScore::new(Url::LocalFolder("../../../watchguard/tftpboot".to_string())); + let tftp_score = TftpScore::new(Url::LocalFolder("./data/watchguard/tftpboot".to_string())); let http_score = HttpScore::new(Url::LocalFolder( - "../../../watchguard/pxe-http-files".to_string(), + "./data/watchguard/pxe-http-files".to_string(), )); let mut maestro = Maestro::new(inventory, topology); maestro.register_all(vec![ diff --git a/harmony_tui/src/lib.rs b/harmony_tui/src/lib.rs index 64dda5d..7ee0301 100644 --- a/harmony_tui/src/lib.rs +++ b/harmony_tui/src/lib.rs @@ -110,7 +110,8 @@ impl HarmonyTUI { tui_logger::init_logger(log::LevelFilter::Info).unwrap(); // Set default level for unknown targets to Trace tui_logger::set_default_level(log::LevelFilter::Info); - tui_logger::set_log_file("harmony.log").unwrap(); + std::fs::create_dir_all("log")?; + tui_logger::set_log_file("log/harmony.log").unwrap(); color_eyre::install()?; let mut terminal = ratatui::init();