Skip to content

Commit

Permalink
lower verbosity for le tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
OlofBlomqvist committed Sep 17, 2024
1 parent ee56683 commit f5457dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/certs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ impl DynamicCertResolver {
Some(v) => {
let days = v.whole_days();
if days < 30 {
tracing::warn!("Purging the self-signed cert for {domain} due to less than 30 days remaining: {days} days.");
tracing::info!("Purging the self-signed cert for {domain} due to less than 30 days remaining: {days} days.");
self.lets_encrypt_signed_certs.remove(domain);
None
} else {
tracing::warn!("The self-signed certificate for {domain} is valid for {days} days. will keep in cache.");
tracing::trace!("The self-signed certificate for {domain} is valid for {days} days. will keep in cache.");
Some(c)
}
},
Expand Down Expand Up @@ -89,11 +89,11 @@ impl DynamicCertResolver {
Some(v) => {
let days = v.whole_days();
if days < 30 {
tracing::warn!("Generating a new LE cert for {domain} due to less than 30 days remaining: {days} days.");
tracing::info!("Generating a new LE cert for {domain} due to less than 30 days remaining: {days} days.");
self.lets_encrypt_signed_certs.remove(domain);
None
} else {
tracing::warn!("The LE certificate for {domain} is valid for {days} days. will keep using.");
tracing::trace!("The LE certificate for {domain} is valid for {days} days. will keep using.");
Some(c)
}
},
Expand Down

0 comments on commit f5457dc

Please sign in to comment.