Skip to content

Commit 2ed0f3e

Browse files
authored
rustls: Disable logging (#4426)
Disable logging of rustls to get rid off the following log lines: ``` Sending fatal alert BadCertificate ``` Upstream also removed them: rustls/rustls#1278 Closes: #3252
1 parent 657df04 commit 2ed0f3e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

prdoc/pr_4426.prdoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
title: "Remove warning about `BadCertificate`"
2+
3+
doc:
4+
- audience: Node Operator
5+
description: |
6+
The node was printing the following warning from time to time:
7+
```
8+
Sending fatal alert BadCertificate
9+
```
10+
11+
This is not an user error and thus, the warning will now not be printed
12+
anymore.
13+
14+
crates:
15+
- name: sc-cli

substrate/client/tracing/src/logging/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ where
141141
.add_directive(
142142
parse_default_directive("libp2p_mdns::behaviour::iface=off")
143143
.expect("provided directive is valid"),
144+
)
145+
.add_directive(
146+
parse_default_directive("rustls::common_state=off")
147+
.expect("provided directive is valid"),
144148
);
145149

146150
if let Ok(lvl) = std::env::var("RUST_LOG") {

0 commit comments

Comments
 (0)