console error renewing certificate will print only expiration date, and not time, to avoid confusion with log timestamp
Massimo Melina committed
Oct 5, 2024 at 14:28 UTC
72bf790e8b0bd7ac4518b8d9da011f70fe4af52f
1 file changed
+1
-1
src/acme.ts
+1
-1
@@ -125,6 +125,6 @@ const renewCert = debounceAsync(async () => {
125
if (now > new Date(cert.validFrom) && now < validTo && validTo.getTime() - now.getTime() >= 30 * DAY)
126
return console.log("certificate still good")
127
await makeCert(domain, acmeEmail.get(), altNames)
128
- .catch(e => console.log(`error renewing certificate, expiring ${validTo.toLocaleString()}: `, String(e.message || e)))
128
+ .catch(e => console.log(`error renewing certificate, expiring ${validTo.toLocaleDateString()}:`, String(e.message || e)))
129
}, { retain: DAY, retainFailure: HOUR })
130