diff --git a/acmed/src/acme_proto/account.rs b/acmed/src/acme_proto/account.rs index 4068264..9752657 100644 --- a/acmed/src/acme_proto/account.rs +++ b/acmed/src/acme_proto/account.rs @@ -50,13 +50,11 @@ pub fn init_account(cert: &Certificate) -> Result<(), Error> { let sign_alg = SignatureAlgorithm::from_str(crate::DEFAULT_JWS_SIGN_ALGO)?; let key_pair = sign_alg.gen_key_pair()?; storage::set_account_keypair(cert, &key_pair)?; - let msg = format!("Account {} created.", &cert.account.name); - cert.info(&msg) + cert.info(&format!("Account {} created", &cert.account.name)); } else { // TODO: check if the keys are suitable for the specified signature algorithm // and, if not, initiate a key rollover. - let msg = format!("Account {} already exists.", &cert.account.name); - cert.debug(&msg) + cert.debug(&format!("Account {} already exists", &cert.account.name)); } Ok(()) } diff --git a/acmed/src/certificate.rs b/acmed/src/certificate.rs index 4ea6089..4991427 100644 --- a/acmed/src/certificate.rs +++ b/acmed/src/certificate.rs @@ -155,9 +155,9 @@ impl Certificate { let renew = renew || self.is_expiring(&cert)?; if renew { - self.debug("The certificate will be renewed now."); + self.debug("The certificate will be renewed now"); } else { - self.debug("The certificate will not be renewed now."); + self.debug("The certificate will not be renewed now"); } Ok(renew) }