From 0bea6c73506ed495cf793e5d2ed3c2676bb380f7 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Thu, 15 Dec 2016 13:09:00 -0800 Subject: [PATCH] Log when we run renew hooks (why weren't we doing this already?) --- certbot/hooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/certbot/hooks.py b/certbot/hooks.py index 5c14881e9..0eec93ab8 100644 --- a/certbot/hooks.py +++ b/certbot/hooks.py @@ -21,6 +21,7 @@ def _prog(shell_cmd): cmd = _which(shell_cmd) return os.path.basename(cmd) if cmd else None + def validate_hook(shell_cmd, hook_name): """Check that a command provided as a hook is plausibly executable. @@ -65,6 +66,7 @@ def renew_hook(config, domains, lineage_path): if not config.dry_run: os.environ["RENEWED_DOMAINS"] = " ".join(domains) os.environ["RENEWED_LINEAGE"] = lineage_path + logger.info("Running renew-hook command: %s", config.renew_hook) _run_hook(config.renew_hook) else: logger.warning("Dry run: skipping renewal hook command: %s", config.renew_hook)