From 8a48fcc9d3ee83ef2a02fe3db056f16a1276c540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 18 Jul 2023 00:49:03 +0200 Subject: [PATCH] chore: disable rustls logging (#19859) This commit disables internal logging coming from `rustls` crate. So messages like: ``` TLS alert received: AlertMessagePayload { level: Fatal, description: UnknownCA, } ``` will no longer appear unconditionally. --- cli/util/logger.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/util/logger.rs b/cli/util/logger.rs index 910dbb020c..e430b0ec9d 100644 --- a/cli/util/logger.rs +++ b/cli/util/logger.rs @@ -44,6 +44,7 @@ pub fn init(maybe_level: Option) { // used to make available the lsp_debug which is then filtered out at runtime // in the cli logger .filter_module("deno::lsp::performance", log::LevelFilter::Debug) + .filter_module("rustls", log::LevelFilter::Off) .format(|buf, record| { let mut target = record.target().to_string(); if let Some(line_no) = record.line() {