Skip to content

Commit

Permalink
rustls: Disable logging again (paritytech#4541)
Browse files Browse the repository at this point in the history
We are actually using an older version, where the log line is in a
different file.
  • Loading branch information
bkchr authored and TarekkMA committed Aug 2, 2024
1 parent 61d01d5 commit 68c95b9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions prdoc/pr_4541.prdoc
Original file line number Diff line number Diff line change
@@ -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
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 @@ -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") {
Expand Down

0 comments on commit 68c95b9

Please sign in to comment.