fix logger call

This commit is contained in:
Iuri Matias 2017-12-16 12:48:59 -05:00
parent 9d78f995e8
commit b764ecf4d6
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class Npm {
let gitHead = registryJSON.gitHead;
if (!gitHead) {
console.error("Could not download " + packageName + " " + version);
this.logger.error("Could not download " + packageName + " " + version);
return callback("error");
}
@ -30,7 +30,7 @@ class Npm {
}
} else {
fs.mkdirpSync(packageDirectory);
self.logger.info("downloading " + packageName + " " + version + "....");
this.logger.info("downloading " + packageName + " " + version + "....");
utils.downloadFile(fileLocation, packageDirectory + "/" + packageName + ".js", function() {
utils.extractTar(packageDirectory + "/" + packageName + ".js", packageDirectory, function() {