From f5d2c61a7021fcd6731365a654cdd3063fd58af5 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 9 Oct 2024 19:31:47 +0100 Subject: [PATCH] refactor: Add logging for writing custom certificates to disk --- Nginx/Jobs/AcmeWriteCertificates.ts | 2 ++ Nginx/Jobs/WriteCustomCertsToDisk.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Nginx/Jobs/AcmeWriteCertificates.ts b/Nginx/Jobs/AcmeWriteCertificates.ts index 0766c60f50..e11e9f2f49 100644 --- a/Nginx/Jobs/AcmeWriteCertificates.ts +++ b/Nginx/Jobs/AcmeWriteCertificates.ts @@ -53,6 +53,8 @@ export default class Jobs { `/etc/nginx/certs/StatusPageCerts/${cert.domain}.key`, cert.certificateKey?.toString() || "", ); + + logger.debug(`Wrote custom certs to disk for domain: ${cert.domain}`); } }, }); diff --git a/Nginx/Jobs/WriteCustomCertsToDisk.ts b/Nginx/Jobs/WriteCustomCertsToDisk.ts index a3dce545ac..676beff243 100644 --- a/Nginx/Jobs/WriteCustomCertsToDisk.ts +++ b/Nginx/Jobs/WriteCustomCertsToDisk.ts @@ -66,6 +66,10 @@ export default class Jobs { `/etc/nginx/certs/StatusPageCerts/${cert.domain}.key`, cert.customCertificateKey?.toString() || "", ); + + logger.debug( + `Wrote custom certs to disk for domain: ${cert.fullDomain}`, + ); } }, });