]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: acme: add a success message to the logs
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 16 Apr 2025 12:51:18 +0000 (14:51 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 16 Apr 2025 12:51:18 +0000 (14:51 +0200)
Add a success log when the certificate was updated.

Ex:

  acme: foobar.pem: Successful update of the certificate.

src/acme.c

index dff19393078f463b880be87281a2cc1e2d26bc33..86ffd5b784cb149a91eff1d54a43d6cdee3930bd 100644 (file)
@@ -625,6 +625,8 @@ int acme_update_certificate(struct task *task, struct acme_ctx *ctx, char **errm
        /* insert everything and remove the previous objects */
        ckch_store_replace(old_ckchs, new_ckchs);
 
+       send_log(NULL, LOG_NOTICE,"acme: %s: Successful update of the certificate.\n", ctx->store->path);
+
        ret = 0;
 
 error: