From 68c95b9a1d4671021c7b8c56cfd1a45142605bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Wed, 22 May 2024 16:03:07 +0200 Subject: [PATCH] rustls: Disable logging again (#4541) We are actually using an older version, where the log line is in a different file. --- prdoc/pr_4541.prdoc | 16 ++++++++++++++++ substrate/client/tracing/src/logging/mod.rs | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 prdoc/pr_4541.prdoc diff --git a/prdoc/pr_4541.prdoc b/prdoc/pr_4541.prdoc new file mode 100644 index 0000000000000..815ea2c800625 --- /dev/null +++ b/prdoc/pr_4541.prdoc @@ -0,0 +1,16 @@ +title: "Remove warning about `BadCertificate` Version 2" + +doc: + - audience: Node Operator + description: | + The node was printing the following warning from time to time: + ``` + Sending fatal alert BadCertificate + ``` + + This is not an user error and thus, the warning will now not be printed + anymore. + +crates: + - name: sc-tracing + bump: patch diff --git a/substrate/client/tracing/src/logging/mod.rs b/substrate/client/tracing/src/logging/mod.rs index 46fd4efb339a3..05ec9fcf6ef08 100644 --- a/substrate/client/tracing/src/logging/mod.rs +++ b/substrate/client/tracing/src/logging/mod.rs @@ -142,9 +142,13 @@ where parse_default_directive("libp2p_mdns::behaviour::iface=off") .expect("provided directive is valid"), ) + // Disable annoying log messages from rustls .add_directive( parse_default_directive("rustls::common_state=off") .expect("provided directive is valid"), + ) + .add_directive( + parse_default_directive("rustls::conn=off").expect("provided directive is valid"), ); if let Ok(lvl) = std::env::var("RUST_LOG") {