diff --git a/src/certificates.js b/src/certificates.js index 8e77f2bab..0cd893d89 100644 --- a/src/certificates.js +++ b/src/certificates.js @@ -151,10 +151,13 @@ function autoRenew(callback) { var certFilePath, keyFilePath; if (error) { - debug('autoRenew: could not renew cert for %s because %s. using fallback certs', domain, error); + debug('autoRenew: could not renew cert for %s because %s', domain, error); // check if we should fallback if (!isExpiringSync(appDomain, 1)) return iteratorCallback(); + + debug('autoRenew: using fallback certs for %s since it expires soon', domain, error); + certFilePath = 'cert/host.cert'; keyFilePath = 'cert/host.key'; } else {