mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
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.
This commit is contained in:
parent
b09af6a424
commit
8a48fcc9d3
1 changed files with 1 additions and 0 deletions
|
@ -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
|
// used to make available the lsp_debug which is then filtered out at runtime
|
||||||
// in the cli logger
|
// in the cli logger
|
||||||
.filter_module("deno::lsp::performance", log::LevelFilter::Debug)
|
.filter_module("deno::lsp::performance", log::LevelFilter::Debug)
|
||||||
|
.filter_module("rustls", log::LevelFilter::Off)
|
||||||
.format(|buf, record| {
|
.format(|buf, record| {
|
||||||
let mut target = record.target().to_string();
|
let mut target = record.target().to_string();
|
||||||
if let Some(line_no) = record.line() {
|
if let Some(line_no) = record.line() {
|
||||||
|
|
Loading…
Reference in a new issue