aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-03-28 19:46:06 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2021-03-28 19:46:06 +0000
commit3c5a2de4308975af2ba3a831b638705c424fd2f8 (patch)
tree01d2a6897b3c07c2fb801f1c03b8f352a1c75329 /src/main.rs
parentFix tests (diff)
downloadminiserve-3c5a2de4308975af2ba3a831b638705c424fd2f8.tar.gz
miniserve-3c5a2de4308975af2ba3a831b638705c424fd2f8.zip
Change start message without arguments to be a bit more clear
Diffstat (limited to '')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 1b896da..5fadb07 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,7 +12,7 @@ use actix_web::{
use actix_web::{middleware, App, HttpRequest, HttpResponse};
use actix_web_httpauth::middleware::HttpAuthentication;
use http::header::HeaderMap;
-use log::error;
+use log::{error, warn};
use structopt::clap::crate_version;
use structopt::StructOpt;
use yansi::{Color, Paint};
@@ -266,9 +266,9 @@ async fn run(miniserve_config: MiniserveConfig) -> Result<(), ContextualError> {
version = crate_version!()
);
if !miniserve_config.path_explicitly_chosen {
- println!("{warning} miniserve has been invoked without an explicit path so it will serve the current directory.", warning=Color::RGB(255, 192, 0).paint("Notice:").bold());
- println!(
- " Invoke with -h|--help to see options or invoke as `miniserve .` to hide this advice."
+ warn!("miniserve has been invoked without an explicit path so it will serve the current directory after a short delay.");
+ warn!(
+ "Invoke with -h|--help to see options or invoke as `miniserve .` to hide this advice."
);
print!("Starting server in ");
io::stdout()