summaryrefslogtreecommitdiff
path: root/cli/util/logger.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-07-18 00:49:03 +0200
committerGitHub <noreply@github.com>2023-07-17 16:49:03 -0600
commit8a48fcc9d3ee83ef2a02fe3db056f16a1276c540 (patch)
treeeb447bf3c2113b1ccb17086e5aad78cebbc32ce9 /cli/util/logger.rs
parentb09af6a4244356485054948499dba5f94d8814f4 (diff)
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.
Diffstat (limited to 'cli/util/logger.rs')
-rw-r--r--cli/util/logger.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/util/logger.rs b/cli/util/logger.rs
index 910dbb020..e430b0ec9 100644
--- a/cli/util/logger.rs
+++ b/cli/util/logger.rs
@@ -44,6 +44,7 @@ pub fn init(maybe_level: Option<log::Level>) {
// 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() {