refactor: Add logging for writing custom certificates to disk

This commit is contained in:
Simon Larsen 2024-10-09 19:31:47 +01:00
parent d072a29cf8
commit f5d2c61a70
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 6 additions and 0 deletions

View File

@ -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}`);
}
},
});

View File

@ -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}`,
);
}
},
});