diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-09 10:54:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 10:54:24 -0500 |
commit | 653aebfa1aa9121070df98ee88474b5f821fb15d (patch) | |
tree | 90766bc70aa83f4f16ec1c517e495cd7c6a98fbd /cli/tools/fmt.rs | |
parent | cb6700fa5aac03fb3e082f9ed2e01d74238e6a99 (diff) |
fix: respect the `--quiet` flag in more cases (#16998)
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 7b5797d88..fee59c6dc 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -28,6 +28,7 @@ use deno_core::futures; use deno_core::parking_lot::Mutex; use log::debug; use log::info; +use log::warn; use std::fs; use std::io::stdin; use std::io::stdout; @@ -325,8 +326,8 @@ async fn check_source_files( Err(e) => { not_formatted_files_count.fetch_add(1, Ordering::Relaxed); let _g = output_lock.lock(); - eprintln!("Error checking: {}", file_path.to_string_lossy()); - eprintln!(" {}", e); + warn!("Error checking: {}", file_path.to_string_lossy()); + warn!(" {}", e); } } Ok(()) |