forked from NationTech/harmony
feat: add .gitignore and update file paths
Add a .gitignore file to exclude target, private_repos, and log directories. Update TftpScore and HttpScore file paths in `main.rs` to use relative paths from the project root. Modify `HarmonyTUI` initialization in `lib.rs` to create log directory if it doesn't exist before setting the log file path.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user