Remove log spam if latest version installed

Installed a recent version of this package and noticed my app kept saying 'has latest' on boot.
Also change 'needs latest' to mention what's actually needed.
This commit is contained in:
Mike MacCana 2014-07-29 15:25:12 +01:00
parent b47aee09f4
commit ed1e5579c9
1 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ var fs = require('fs')
;
if (!fs.existsSync(latestFile)) {
console.log('needs latest', latestFile);
console.log('Needs latest SSL Root Certificate Authority data', latestFile);
module.exports = require('./ssl-root-cas');
generate(latestFile).then(function () {
console.info('\n');
@ -25,6 +25,5 @@ if (!fs.existsSync(latestFile)) {
console.warn('');
});
} else {
console.log('has latest');
module.exports = require('./ssl-root-cas-latest');
}