summaryrefslogtreecommitdiff
path: root/cli/permissions.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/permissions.rs
parentdca00211abf311de9fec4f73f8365e430787e3f9 (diff)
Add global "quiet" flag (#4135)
Diffstat (limited to 'cli/permissions.rs')
-rw-r--r--cli/permissions.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/cli/permissions.rs b/cli/permissions.rs
index 9a397ea4a..6063ee9d1 100644
--- a/cli/permissions.rs
+++ b/cli/permissions.rs
@@ -4,7 +4,6 @@ use crate::flags::Flags;
use crate::op_error::OpError;
#[cfg(not(test))]
use atty;
-use log;
use std::collections::HashSet;
use std::fmt;
#[cfg(not(test))]
@@ -349,12 +348,10 @@ fn permission_prompt(_message: &str) -> bool {
}
fn log_perm_access(message: &str) {
- if log_enabled!(log::Level::Info) {
- eprintln!(
- "{}",
- colors::bold(format!("{}️ Granted {}", PERMISSION_EMOJI, message))
- );
- }
+ debug!(
+ "{}",
+ colors::bold(format!("{}️ Granted {}", PERMISSION_EMOJI, message))
+ );
}
fn check_path_white_list(path: &Path, white_list: &HashSet<PathBuf>) -> bool {