From: William Lallemand Date: Wed, 16 Apr 2025 12:39:39 +0000 (+0200) Subject: MINOR: acme: emit logs instead of ha_notice X-Git-Tag: v3.2-dev11~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31a1d138024a04a8d1af384a6070091d31c6733a;p=thirdparty%2Fhaproxy.git MINOR: acme: emit logs instead of ha_notice Emit logs using the global logs when the ACME task failed or retries, instead of using ha_notice(). --- diff --git a/src/acme.c b/src/acme.c index ec780139a..dff193930 100644 --- a/src/acme.c +++ b/src/acme.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -1680,11 +1681,11 @@ retry: for (i = 0; i < ACME_RETRY - ctx->retries; i++) delay *= 3; - ha_notice("acme: %s, retrying in %ds (%d/%d)...\n", errmsg ? errmsg : "", delay, ACME_RETRY - ctx->retries, ACME_RETRY); + send_log(NULL, LOG_NOTICE, "acme: %s: %s, retrying in %ds (%d/%d)...\n", ctx->store->path, errmsg ? errmsg : "", delay, ACME_RETRY - ctx->retries, ACME_RETRY); task->expire = tick_add(now_ms, delay * 1000); } else { - ha_notice("acme: %s, aborting. (%d/%d)\n", errmsg ? errmsg : "", ACME_RETRY-ctx->retries, ACME_RETRY); + send_log(NULL, LOG_NOTICE,"acme: %s: %s, aborting. (%d/%d)\n", ctx->store->path, errmsg ? errmsg : "", ACME_RETRY-ctx->retries, ACME_RETRY); goto end; }