From b764ecf4d6bfd85e2f822c4a301fee4bed86c799 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 16 Dec 2017 12:48:59 -0500 Subject: [PATCH] fix logger call --- lib/pipeline/npm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pipeline/npm.js b/lib/pipeline/npm.js index 71df2950a..fd5905bae 100644 --- a/lib/pipeline/npm.js +++ b/lib/pipeline/npm.js @@ -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() {