summaryrefslogtreecommitdiff
path: root/cli/file_fetcher.rs
diff options
context:
space:
mode:
authorFlorian Häglsperger <florian@haeglsperger.com>2020-03-10 13:26:17 +0100
committerGitHub <noreply@github.com>2020-03-10 08:26:17 -0400
commit62f4a2a788a46af88e47472738d1a98fa247b9b0 (patch)
tree226463e0e4c9003a996a50d2d7a4e7651a5d8f4a /cli/file_fetcher.rs
parentdca00211abf311de9fec4f73f8365e430787e3f9 (diff)
Add global "quiet" flag (#4135)
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r--cli/file_fetcher.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs
index c3a576df5..af512916d 100644
--- a/cli/file_fetcher.rs
+++ b/cli/file_fetcher.rs
@@ -9,9 +9,9 @@ use crate::op_error::OpError;
use deno_core::ErrBox;
use deno_core::ModuleSpecifier;
use futures::future::FutureExt;
+use log::info;
use regex::Regex;
use reqwest;
-use std;
use std::collections::HashMap;
use std::fs;
use std::future::Future;
@@ -23,7 +23,6 @@ use std::result::Result;
use std::str;
use std::sync::Arc;
use std::sync::Mutex;
-use url;
use url::Url;
/// Structure representing local or remote file.
@@ -414,11 +413,12 @@ impl SourceFileFetcher {
.boxed_local();
}
- eprintln!(
+ info!(
"{} {}",
colors::green("Download".to_string()),
module_url.to_string()
);
+
let dir = self.clone();
let module_url = module_url.clone();
let module_etag = match self.http_cache.get(&module_url) {