Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustls: Disable logging #4426

Merged
merged 3 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading