Skip to content

Commit

Permalink
refactor: Add logging for writing custom certificates to disk
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Oct 9, 2024
1 parent d072a29 commit f5d2c61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Nginx/Jobs/AcmeWriteCertificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
},
});
Expand Down
4 changes: 4 additions & 0 deletions Nginx/Jobs/WriteCustomCertsToDisk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
},
});
Expand Down

0 comments on commit f5d2c61

Please sign in to comment.