diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-17 20:38:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 20:38:57 +0200 |
commit | d245ececb6c3eed9d6a01b877cfbbf7642454fc3 (patch) | |
tree | 028f6b38461b47bd8a00601ed4a6c7af87376c11 /cli/main.rs | |
parent | 6453cb75670b6aefbfc712c7d05b1135bee6226c (diff) |
fix: disable rustyline logs (#7535)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs index 251ebe59e..ea8b596d5 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -77,6 +77,7 @@ use flags::Flags; use futures::future::FutureExt; use futures::Future; use log::Level; +use log::LevelFilter; use state::exit_unstable; use std::env; use std::io::Read; @@ -657,6 +658,8 @@ pub fn main() { env_logger::Env::default() .default_filter_or(log_level.to_level_filter().to_string()), ) + // https://github.com/denoland/deno/issues/6641 + .filter_module("rustyline", LevelFilter::Off) .format(|buf, record| { let mut target = record.target().to_string(); if let Some(line_no) = record.line() { |