1
0
Fork 0
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:
Bartek Iwańczuk 2020-09-17 20:38:57 +02:00 committed by GitHub
parent 6453cb7567
commit d245ececb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {