Skip to content

Commit

Permalink
rustls: Disable logging (paritytech#4426)
Browse files Browse the repository at this point in the history
Disable logging of rustls to get rid off the following log lines:
```
Sending fatal alert BadCertificate
```

Upstream also removed them: rustls/rustls#1278


Closes: paritytech#3252
  • Loading branch information
bkchr authored and TarekkMA committed Aug 2, 2024
1 parent 6895473 commit 0dec4e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions prdoc/pr_4426.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: "Remove warning about `BadCertificate`"

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-cli
4 changes: 4 additions & 0 deletions substrate/client/tracing/src/logging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ where
.add_directive(
parse_default_directive("libp2p_mdns::behaviour::iface=off")
.expect("provided directive is valid"),
)
.add_directive(
parse_default_directive("rustls::common_state=off")
.expect("provided directive is valid"),
);

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

0 comments on commit 0dec4e9

Please sign in to comment.