From 1f6d1e8d5231bb783c64f3b171f34fcbd39aa26a Mon Sep 17 00:00:00 2001 From: James Date: Fri, 3 Aug 2018 20:59:43 +1000 Subject: [PATCH] Clean up logging somewhat --- src/main.rs | 8 ++++---- src/tasks/resolver.rs | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7180baf..6147929 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,23 +43,23 @@ fn main() { let app_name = config.general.name.clone(); + println!("{} installer", app_name); + let current_exe = std::env::current_exe().unwrap(); let current_path = current_exe.parent().unwrap(); let metadata_file = current_path.join("metadata.json"); - println!("Attempting to open: {:?}", metadata_file); let framework = if metadata_file.exists() { + println!("Using pre-existing metadata file: {:?}", metadata_file); InstallerFramework::new_with_db(config, current_path).unwrap() } else { + println!("Starting fresh install"); InstallerFramework::new(config) }; - // blah 1 - let server = WebServer::new(framework).unwrap(); // Startup HTTP server for handling the web view let http_address = format!("http://{}", server.get_addr()); - println!("{}", http_address); // Init the web view let size = (1024, 550); diff --git a/src/tasks/resolver.rs b/src/tasks/resolver.rs index 2acbb5d..94de320 100644 --- a/src/tasks/resolver.rs +++ b/src/tasks/resolver.rs @@ -57,8 +57,6 @@ impl Task for ResolvePackageTask { Err(v) => return Err(format!("An error occured while compiling regex: {:?}", v)), }; - println!("Releases: {:?}", results); - // Find the latest release in here let latest_result = results .into_iter() @@ -80,7 +78,7 @@ impl Task for ResolvePackageTask { .next() .unwrap(); - println!("{:?}", latest_file); + println!("Selected file: {:?}", latest_file); Ok(TaskParamType::File(latest_version, latest_file)) }