Browse Source

acme_updater: correct string replacement in error logging

Helmut Pozimski 7 years ago
parent
commit
6bb41c86df
1 changed files with 4 additions and 3 deletions
  1. 4 3
      acme_updater.py

+ 4 - 3
acme_updater.py

@@ -157,7 +157,7 @@ for entry in PARSED_VHOSTS:
                 expiry_date = x509_acme_cert.get_notAfter().decode("utf-8")
                 expiry_datetime = parse_asn1_time(expiry_date)
                 if expiry_datetime < datetime.datetime.utcnow():
-                    LOGGER.warn("Certificate for %s is expired and no newer "
+                    LOGGER.warning("Certificate for %s is expired and no newer "
                                 "one is available, bailing out!", entry[0])
                 else:
                     serial_current_cert = x509_current_cert.get_serial_number()
@@ -177,11 +177,12 @@ for entry in PARSED_VHOSTS:
                             else:
                                 LOGGER.error("Renewal of cert for %s failed, "
                                              "please clean up manually and "
-                                             "check the backup files!")
+                                             "check the backup files!",
+                                             entry[0])
                         else:
                             LOGGER.error("Renewal of cert for %s failed, "
                                          "please clean up manually and "
-                                         "check the backup files!")
+                                         "check the backup files!", entry[0])
 
 if CERT_RENEWED:
     LOGGER.debug("Checking apache configuration")