add debug for fallback case

This commit is contained in:
Girish Ramakrishnan
2016-03-19 18:37:05 -07:00
parent 7aa5e8720a
commit 8c36f3aab4
+4 -1
View File
@@ -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 {