mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 15:19:40 -05:00
fix: disable rustyline logs (#7535)
This commit is contained in:
parent
6453cb7567
commit
d245ececb6
1 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue