diff --git a/pkarr/src/extra/tls.rs b/pkarr/src/extra/tls.rs index bcf0bbc..3ed28be 100644 --- a/pkarr/src/extra/tls.rs +++ b/pkarr/src/extra/tls.rs @@ -7,6 +7,7 @@ use rustls::{ pki_types::SubjectPublicKeyInfoDer, CertificateError, SignatureScheme, }; +use tracing::{instrument, Level}; use crate::Client; @@ -21,6 +22,7 @@ static SUPPORTED_ALGORITHMS: WebPkiSupportedAlgorithms = WebPkiSupportedAlgorith }; impl ServerCertVerifier for CertVerifier { + #[instrument(ret(level = Level::DEBUG), err(level = Level::DEBUG))] /// Verify Pkarr public keys fn verify_server_cert( &self, @@ -66,6 +68,7 @@ impl ServerCertVerifier for )) } + #[instrument(ret(level = Level::DEBUG), err(level = Level::DEBUG))] /// Verify a message signature using a raw public key and the first TLS 1.3 compatible /// supported scheme. fn verify_tls12_signature( @@ -82,6 +85,7 @@ impl ServerCertVerifier for ) } + #[instrument(ret(level = Level::DEBUG), err(level = Level::DEBUG))] /// Verify a message signature using a raw public key and the first TLS 1.3 compatible /// supported scheme. fn verify_tls13_signature(