1
0
Fork 0
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:
Bartek Iwańczuk 2023-07-18 00:49:03 +02:00 committed by GitHub
parent b09af6a424
commit 8a48fcc9d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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