Browse Source

Remove trailing period from logs

Some logs contain a trailing period, some don't. Since they don't add
any information, I removed them for more consistency.
pull/27/head
Danilo Bargen 5 years ago
parent
commit
3e49c938ea
  1. 6
      acmed/src/acme_proto/account.rs
  2. 4
      acmed/src/certificate.rs

6
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 sign_alg = SignatureAlgorithm::from_str(crate::DEFAULT_JWS_SIGN_ALGO)?;
let key_pair = sign_alg.gen_key_pair()?; let key_pair = sign_alg.gen_key_pair()?;
storage::set_account_keypair(cert, &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 { } else {
// TODO: check if the keys are suitable for the specified signature algorithm // TODO: check if the keys are suitable for the specified signature algorithm
// and, if not, initiate a key rollover. // 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(()) Ok(())
} }

4
acmed/src/certificate.rs

@ -155,9 +155,9 @@ impl Certificate {
let renew = renew || self.is_expiring(&cert)?; let renew = renew || self.is_expiring(&cert)?;
if renew { if renew {
self.debug("The certificate will be renewed now.");
self.debug("The certificate will be renewed now");
} else { } else {
self.debug("The certificate will not be renewed now.");
self.debug("The certificate will not be renewed now");
} }
Ok(renew) Ok(renew)
} }

Loading…
Cancel
Save