From 7814984e02ca095483459b7fb39f9c8bf3dbaf89 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Wed, 24 Oct 2018 15:26:01 -0700 Subject: [PATCH] Log static web files location --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index f3d6366..cfae8cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -238,16 +238,15 @@ fn run() -> Result<()> { mount.mount(&api_url, handler); // Mount static files - let static_url = format!("/{}", &prefix_url); - - info!("Mounting static files on {}", static_url); let web_dir_name = matches.opt_str("w"); let mut default_web_dir = utils::get_data_root()?; default_web_dir.push("web"); let web_dir_path = web_dir_name .map(|n| Path::new(n.as_str()).to_path_buf()) .unwrap_or(default_web_dir); - + info!("Static files location is {}", web_dir_path.display()); + let static_url = format!("/{}", &prefix_url); + info!("Mounting static files on {}", static_url); mount.mount(&static_url, Static::new(web_dir_path)); info!("Starting up server");