mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:31:51 +02:00
Log new cert and cert renewal
This commit is contained in:
@@ -88,9 +88,11 @@ def _auth_from_domains(le_client, config, domains, lineage=None):
|
|||||||
hooks.pre_hook(config)
|
hooks.pre_hook(config)
|
||||||
try:
|
try:
|
||||||
if action == "renew":
|
if action == "renew":
|
||||||
|
logger.info("Renewing an existing certificate")
|
||||||
renewal.renew_cert(config, domains, le_client, lineage)
|
renewal.renew_cert(config, domains, le_client, lineage)
|
||||||
elif action == "newcert":
|
elif action == "newcert":
|
||||||
# TREAT AS NEW REQUEST
|
# TREAT AS NEW REQUEST
|
||||||
|
logger.info("Obtaining a new certificate")
|
||||||
lineage = le_client.obtain_and_enroll_certificate(domains)
|
lineage = le_client.obtain_and_enroll_certificate(domains)
|
||||||
if lineage is False:
|
if lineage is False:
|
||||||
raise errors.Error("Certificate could not be obtained")
|
raise errors.Error("Certificate could not be obtained")
|
||||||
|
|||||||
Reference in New Issue
Block a user