From c7d14f7aa7733b441b0710d50ee31311a2296dc1 Mon Sep 17 00:00:00 2001 From: Jasmine Schladen Date: Tue, 17 Sep 2024 17:12:23 -0700 Subject: [PATCH] Add debug logging --- lemur/certificates/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lemur/certificates/cli.py b/lemur/certificates/cli.py index 6bcddec35..d9ff63646 100644 --- a/lemur/certificates/cli.py +++ b/lemur/certificates/cli.py @@ -600,14 +600,17 @@ def reissue(old_certificate_name, serial_numbers, notify, commit): old_cert_by_name = validate_certificate(old_certificate_name) if old_cert_by_name: + click.echo(f"[+] Reissuing certificate by name: {old_certificate_name}") # TODO remove certs_to_reissue.append(old_cert_by_name) old_certs_by_serial_numbers = validate_certificates_by_serial_numbers(serial_numbers) if old_certs_by_serial_numbers: + click.echo(f"[+] Reissuing certificates by serial numbers: {serial_numbers}") # TODO remove certs_to_reissue.extend(old_certs_by_serial_numbers) # if neither name nor serial numbers were specified, reissue all pending reissues if not certs_to_reissue: + click.echo("[+] Reissuing all pending certificates.") certs_to_reissue = get_all_pending_reissue() for old_cert in certs_to_reissue: